What exactly does SO_LINGER do?
Answer / chaitanya
On some unixes this does nothing. On others, it instructs the kernel to abort tcp connections instead of closing them properly. This can be dangerous.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are raw sockets?
How can I set the timeout for the connect() system call?
How are unix domain sockets implemented?
How can I force a socket to send the data in its buffer?
How can I listen on more than one port at a time?
What are the types of sockets?
What exactly does SO_LINGER do?
What exactly does SO_KEEPALIVE do?
What is a socket set used for?
How can I tell when a socket is closed on the other end?
Why does it take so long to detect that the peer died?
What's better 6pt or 12pt sockets?