]> git.tdb.fi Git - libs/net.git/commit
Check for EOF return before checking for errors
authorMikko Rasa <tdb@tdb.fi>
Sun, 11 Dec 2022 10:17:12 +0000 (12:17 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 11 Dec 2022 16:26:44 +0000 (18:26 +0200)
commit63432878fc84bc666bb74efaeee588fa6d03d5b2
tree0fa71417488cfdd4f6cd4931361e38dbc1108998
parent593c8202bf8c6ecc563aaacf0811aef953b45f09
Check for EOF return before checking for errors

The check_sys_error function converts errors from non-blocking operations
which would block into a zero return, making them indistinguishable from
a zero return due to the other end closing the connection.
source/net/clientsocket.cpp
source/net/unix/socket.cpp