forked from aniani/gmnisrv
1
0
Fork 0

Set POLLOUT only when there's something to write

This commit is contained in:
mbays 2020-11-08 14:30:45 +01:00 committed by Drew DeVault
parent ea40fb5a53
commit 4b2c3afdb0
1 changed files with 1 additions and 1 deletions

View File

@ -373,9 +373,9 @@ queue_ssl_write:
return DISCONNECTED;
} else {
client->bufln += r;
client->pollfd->events = POLLOUT;
}
} while (r > 0);
client->pollfd->events = POLLOUT;
return CONNECTED;
}