How come select says there is data, but read returns zero?
Answer / chaitanya
The data that causes select to return is the EOF because the other side has closed the connection. This causes read to return zero.
Is This Answer Correct ? | 0 Yes | 0 No |
Why does it take so long to detect that the peer died?
Why do I keep getting EINTR from the socket calls?
What is difference between socket () and serversocket () class?
How can I find the full hostname (FQDN) of the system I am running on?
How can I listen on more than one port at a time?
How are unix domain sockets implemented?
How do I use TCP_NODELAY?
What are the types of sockets?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
When should I use shutdown()?
What is a sae socket?
What is the difference between connected and unconnected sockets?