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 |
How come I get address already in use from bind()?
Are sockets files?
How can I tell when a socket is closed on the other end?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
How can my client work through a firewall/proxy server?
What is a socket address?
How are unix domain sockets implemented?
What is LILO?
Why do I get EPROTO from read()?
What is a deep well socket?
What are socket exceptions? What is out-of-band data?
What is difference between socket and websocket?