forked from aniani/gmnisrv
Set POLLOUT only when there's something to write
This commit is contained in:
parent
ea40fb5a53
commit
4b2c3afdb0
@ -373,9 +373,9 @@ queue_ssl_write:
|
|||||||
return DISCONNECTED;
|
return DISCONNECTED;
|
||||||
} else {
|
} else {
|
||||||
client->bufln += r;
|
client->bufln += r;
|
||||||
|
client->pollfd->events = POLLOUT;
|
||||||
}
|
}
|
||||||
} while (r > 0);
|
} while (r > 0);
|
||||||
client->pollfd->events = POLLOUT;
|
|
||||||
return CONNECTED;
|
return CONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user