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 are unix domain sockets implemented?
How does unix socket work?
What is socket address?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
How do I use TCP_NODELAY?
How to find other end of unix socket connection?
How do I get my server to find out the clients address / host- name?
When will my application receive SIGPIPE?
How is a socket created?
What is the purpose of socket?
Is tcp or unix socket faster?
What is a socket address?