How come select says there is data, but read returns zero?
Answer Posted / 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 |
Post New Answer View All Answers
How many socket connections can a server handle?
Is tcp or unix socket faster?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
How do unix sockets work?
Why does the sockets buffer fill up sooner than expected?
How is a socket created?
What is a socket address?
How to find other end of unix socket connection?
What is socket address with example?
How can I tell when a socket is closed on the other end?
Can a socket have multiple ports?
What is the difference between read() and recv()?
Whats the difference between select() and poll()?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Is a socket a file?