[libvirt] [PATCH] rpc: ensure the value of nrequests for client not to be negative

2011-08-25 Thread Guannan Ren
The value of nrequests should always be zero or positive but in the case of stream, when error occurrs, it could be negative and makes the client socket fd neither writable nor readable. The case will lead to hang on libvirt client side. This patch aim to fix the problem. ---

Re: [libvirt] [PATCH] rpc: ensure the value of nrequests for client not to be negative

2011-08-25 Thread Daniel P. Berrange
On Thu, Aug 25, 2011 at 10:07:36PM +0800, Guannan Ren wrote: The value of nrequests should always be zero or positive but in the case of stream, when error occurrs, it could be negative and makes the client socket fd neither writable nor readable. The case will lead to hang on libvirt client

Re: [libvirt] [PATCH] rpc: ensure the value of nrequests for client not to be negative

2011-08-25 Thread Guannan Ren
On 08/25/2011 11:36 PM, Daniel P. Berrange wrote: On Thu, Aug 25, 2011 at 10:07:36PM +0800, Guannan Ren wrote: The value of nrequests should always be zero or positive but in the case of stream, when error occurrs, it could be negative and makes the client socket fd neither writable nor