[libvirt] [PATCH 04/23] Change interaction when accepting new RPC client connections

Eric Blake eblake at redhat.com
Tue Aug 14 23:49:37 UTC 2012


On 08/09/2012 09:20 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Currently the virNetServerServicePtr is responsible for
> creating the virNetServerClientPtr instance when accepting
> a new connection. Change this so that the virNetServerServicePtr
> merely gives virNetServerPtr a virNetSocketPtr instance. The
> virNetServerPtr can then create the virNetServerClientPtr
> as it desires

Yes, that seems like a better division of labor.

> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/libvirt_private.syms      |  4 ++--
>  src/rpc/virnetserver.c        | 14 ++++++++++++--
>  src/rpc/virnetserverclient.c  |  4 +---
>  src/rpc/virnetserverservice.c | 38 +++++++++++++++-----------------------
>  src/rpc/virnetserverservice.h |  4 +++-
>  5 files changed, 33 insertions(+), 31 deletions(-)
> 

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120814/31ec2c0e/attachment-0001.sig>


More information about the libvir-list mailing list