[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Fix race condition in abort of stream

On 08/16/2011 12:04 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange"<berrange redhat com>

If a stream gets a server initiated abort, the client may still
send an abort request before it receives the server side abort.
This causes the server to send back another abort for the
stream. Since the protocol defines that abort is the last thing
to be sent, the client gets confused by this second abort from
the server. If the stream is already shutdown, just drop any
client requested abort, rather than sending back another message.
This fixes the regression from previous versions.

The first virsh session should be able to continue issues


* src/rpc/virnetserverprogram.c: Drop abort requests
   for streams which no longer exist
  src/rpc/virnetserverprogram.c |   25 ++++++++-----------------
  1 files changed, 8 insertions(+), 17 deletions(-)


Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]