]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix deadlock when the RPC program is unknown
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 6 Oct 2011 09:41:28 +0000 (10:41 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 7 Oct 2011 15:53:30 +0000 (16:53 +0100)
commitf399612c56ee81c8dab82811e59bcea242cb7aec
tree5f58844f9b29ad35495460b81173ace7f5554a18
parentfd52b968b5009b6a1316ff62d511f2835bca6d11
Fix deadlock when the RPC program is unknown

Commit 597fe3cee68f561a181967b59a87b4e5c5880c4c accidentally
introduced a deadlock when reporting an unknown RPC program.
The virNetServerDispatchNewMessage method is called with
the client locked, and must therefore not attempt to send
any RPC messages back to the client. Only once the incoming
message is passed off to the virNetServerHandleJob worker
is it safe to start sending messages back

* src/rpc/virnetserver.c: Delay checking for unknown RPC
  program until in worker thread
src/rpc/virnetserver.c