Re: [libvirt] [PATCH 03/16] Add callback to virNetClient to be invoked on EOF

2012-07-19 Thread Daniel Veillard
On Wed, Jul 18, 2012 at 05:32:24PM +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Allow detection of EOF in virNetClient via an callback function, triggered from the socket event handler Signed-off-by: Daniel P. Berrange berra...@redhat.com ---

Re: [libvirt] [PATCH 03/16] Add callback to virNetClient to be invoked on EOF

2012-07-19 Thread Daniel P. Berrange
On Thu, Jul 19, 2012 at 04:18:33PM +0800, Daniel Veillard wrote: @@ -1636,17 +1657,21 @@ void virNetClientIncomingEvent(virNetSocketPtr sock, VIR_DEBUG(%s : VIR_EVENT_HANDLE_HANGUP or VIR_EVENT_HANDLE_ERROR encountered, __FUNCTION__);

Re: [libvirt] [PATCH 03/16] Add callback to virNetClient to be invoked on EOF

2012-07-19 Thread Jiri Denemark
On Wed, Jul 18, 2012 at 17:32:24 +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Allow detection of EOF in virNetClient via an callback function, triggered from the socket event handler EOF callback is nice but since we have keepalive, sockets can also be closed

Re: [libvirt] [PATCH 03/16] Add callback to virNetClient to be invoked on EOF

2012-07-19 Thread Daniel P. Berrange
On Thu, Jul 19, 2012 at 10:59:40AM +0200, Jiri Denemark wrote: On Wed, Jul 18, 2012 at 17:32:24 +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Allow detection of EOF in virNetClient via an callback function, triggered from the socket event handler EOF

Re: [libvirt] [PATCH 03/16] Add callback to virNetClient to be invoked on EOF

2012-07-19 Thread Daniel Veillard
On Thu, Jul 19, 2012 at 09:58:58AM +0100, Daniel P. Berrange wrote: On Thu, Jul 19, 2012 at 04:18:33PM +0800, Daniel Veillard wrote: @@ -1636,17 +1657,21 @@ void virNetClientIncomingEvent(virNetSocketPtr sock, VIR_DEBUG(%s : VIR_EVENT_HANDLE_HANGUP or

Re: [libvirt] [PATCH 03/16] Add callback to virNetClient to be invoked on EOF

2012-07-19 Thread Daniel P. Berrange
On Thu, Jul 19, 2012 at 05:44:13PM +0800, Daniel Veillard wrote: On Thu, Jul 19, 2012 at 09:58:58AM +0100, Daniel P. Berrange wrote: On Thu, Jul 19, 2012 at 04:18:33PM +0800, Daniel Veillard wrote: @@ -1636,17 +1657,21 @@ void virNetClientIncomingEvent(virNetSocketPtr sock,