mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
admin: rpc: virnetserver: Fix updating of the client limits
Commit2737aaaf
changed our policy for accepting new clients in a way, that instead of accepting new clients only to disconnect them immediately, since that would overcommit the limit, we temporarily disable polling for the dedicated file descriptor, so any new connection will queue on the socket. Commit8b1f0469
then added the possibility to change the limits during runtime but it didn't re-enable polling for the previously disabled file descriptor, thus any new connection would still continue to queue on the socket. This patch forces an update of the services each time the limits were changed in some way. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1357776 Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
5b9f735f16
commit
e9ce8a7d24
@ -1071,6 +1071,8 @@ virNetServerSetClientLimits(virNetServerPtr srv,
|
||||
if (maxClientsUnauth >= 0)
|
||||
srv->nclients_unauth_max = maxClientsUnauth;
|
||||
|
||||
virNetServerCheckLimits(srv);
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
virObjectUnlock(srv);
|
||||
|
Loading…
Reference in New Issue
Block a user