search for: gierth

Displaying 1 result from an estimated 1 matches for "gierth".

2006 Dec 08
1
linux sockets on centos (slightly off topic)
...read() function. I never get ECONNRESET. Am I missing something in detecting the peer no longer having the socket connection? Thanks, Jerry ---------------------------- This text has been taken from the original FAQ. 2.1 - How can I tell when a socket is closed on the other end? From Andrew Gierth ( andrew at erlenstar.demon.co.uk): AFAIK: If the peer calls close() or exits, without having messed with SO_LINGER, then our calls to read() should return 0. It is less clear what happens to write() calls in this case; I would expect EPIPE, not on the next call, but the one after. If the pee...