[libvirt] [PATCH v2] RPC: Don't accept client if it would overcommit max_clients

Eric Blake eblake at redhat.com
Fri Jul 26 22:18:34 UTC 2013


On 07/26/2013 01:13 AM, Michal Privoznik wrote:
> Currently, even if max_client limit is hit, we accept() incoming
> connection request, but close it immediately. This has disadvantage of
> not using listen() queue. We should accept() only those clients we
> know we can serve and let all other wait in the (limited) queue.
> ---
> 
> diff to v1:
> -moved logic from virNetServerDispatchCheck to virNetServerAddClient
> 
>  src/rpc/virnetserver.c | 33 ++++++++++++++++++++++++++++-----
>  1 file changed, 28 insertions(+), 5 deletions(-)

Looks like a better location to me.  You may still want to wait for
Dan's review, but you have my ACK, and I think this is probably safe for
1.1.1 as a bug-fix.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130726/5e57199f/attachment-0001.sig>


More information about the libvir-list mailing list