Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
a four and half year old bug. % man 2 setsockopt on darwin -- SO_LINGER controls the... #define SO_LINGER 0x0080 /* linger on close if data present (in ticks) */ #define SO_LINGER_SEC 0x1080 /* linger on close if data present (in seconds) */ SO_LINGER_SEC is the same option as SO_LINGER except the linger time is in seconds for SO_LINGER_SEC. -- ticks... but fortunately no one knows what's the correct behavior to closing(*) a SO_LINGER+O_NONBLOCK socket. *) http://pubs.opengroup.org/onlinepubs/9699919799/functions/close.html
This issue was closed.