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

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

 



On Wed, Jul 18, 2012 at 17:32:24 +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> 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
by clients without actually triggering EOF. Should we rather implement a
virNetClientCloseCallback with a parameter that would indicate whether the
socket was closed externally (EOF) or internally (keepalive)? Such callback
could even be visible to apps as a public API so that they are notified about
closed connection even when they have no pending call.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]