Properly check for EWOULDBLOCK as well

This commit is contained in:
Joris Vink 2014-08-01 10:32:31 +02:00
parent a047758df1
commit cee7d34020
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ net_send(struct connection *c)
switch (errno) {
case EINTR:
case EAGAIN:
case EWOULDBLOCK:
c->flags &= ~CONN_WRITE_POSSIBLE;
return (KORE_RESULT_OK);
default:
@ -228,6 +229,7 @@ net_recv(struct connection *c)
switch (errno) {
case EINTR:
case EAGAIN:
case EWOULDBLOCK:
c->flags &= ~CONN_READ_POSSIBLE;
return (KORE_RESULT_OK);
default: