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 |
What are the pros/cons of select(), non-blocking I/O and SIGIO?
What is socket programming in java?
Can a single socket port be used for multiple applications?
How can I read ICMP errors from connected UDP sockets?
Are sockets files?
Where can a get a library for programming sockets?
What is socket address with example?
How do unix sockets work?
Can a socket have multiple ports?
Why sockets are used?
How do Sockets Work?
Why does it take so long to detect that the peer died?