Hello all,
There's quite strange behavior of the linux kernel when other side closed connection
and we try to read from socket.
Firstly I get -1 and EPIPE in errno. Hmmm... I could not find anywhere in standards or manpages
that recv can return EPIPE. OK...
The if I try to continue read I will get the rest of the data which arrived between last read and
connection close... Very strange logic... Any comments on this.
-- Sincerely Yours, Denis Perchine---------------------------------- E-Mail: dyp@perchine.com HomePage: http://www.perchine.com/dyp/ FidoNet: 2:5000/120.5 ----------------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:26 EST