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 |
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
Can a single socket port be used for multiple applications?
Why does connect() succeed even before my server did an accept()?
Why do we need socket programming?
How do I properly close a socket?
How can I listen on more than one port at a time?
What is the function of socket?
How come I get address already in use from bind()?
How can I set the timeout for the connect() system call?
How often should I re-transmit un-acknowleged messages?
What is sae socket?
Can a socket have multiple ports?