[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
non-blocking code and EAGAIN
[Thread Prev] | [Thread Next]
- Subject: non-blocking code and EAGAIN
- From: Matthew Avery <matthewaveryusa@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 8 Feb 2017 21:58:59 -0500
- To: libssh@xxxxxxxxxx
Hi, How is libssh able to handle non-blocking sockets if errno==EAGAIN isn't handled specially? Upon lightly examining socket.c it seems like if errno is < 0 on read or write then the connection goes into an error mode (data_except is set which subsequently sets the status to SSH_CLOSED_ERROR) Thanks, -Matt
Archive administrator: postmaster@lists.cynapses.org