]> xenbits.xensource.com Git - libvirt.git/commit
RPC: Don't accept client if it would overcommit max_clients
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Jul 2013 11:27:42 +0000 (13:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Aug 2013 08:25:01 +0000 (10:25 +0200)
commit2737aaafe953fc63c3387aa3ecc540b0f44c735c
tree38d145d9c16a4a04c4e1f3f6e3ce0a4cae03db24
parent3bb0125766a301a9d99884e7cdb002ba5fa5df01
RPC: Don't accept client if it would overcommit max_clients

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.
src/rpc/virnetserver.c