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 is a socket created?
How can I force a socket to send the data in its buffer?
Whats the difference between select() and poll()?
How do I properly close a socket?
When should I use UDP instead of TCP?
Is tcp or unix socket faster?
Can multiple clients connect to same socket?
How come I get address already in use from bind()?
How come select says there is data, but read returns zero?
Why sockets are used?
How many sockets can a port have?
What is a sae socket?