What exactly does SO_LINGER do?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does unix socket work?

502


How many sockets can a cpu have?

493


How is a socket created?

505


What are the pros/cons of select(), non-blocking I/O and SIGIO?

967


system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

1159






What is difference between socket () and serversocket () class?

490


How can I set the timeout for the connect() system call?

1104


Is tcp or unix socket faster?

492


What is the difference between a socket and a port?

460


Whats the difference between select() and poll()?

1205


What is the function of socket?

510


What does af mean in sockets?

516


How many socket connections can a server handle?

464


What is socket address with example?

487


What is a sae socket?

507