[libvirt] [PATCH] rpc: Don't close connection if program is unknown

Eric Blake eblake at redhat.com
Fri Aug 26 15:17:50 UTC 2011


On 08/26/2011 09:11 AM, Jiri Denemark wrote:
> In case we add a new program in the future (we did that in the past and
> we are going to do it again soon) current daemon will behave badly with
> new client that wants to use the new program. Before the RPC rewrite we
> used to just sent an error reply to any request with unknown program.

s/sent/send/

> With the RPC rewrite in 0.9.3 the daemon just closes the connection
> through which such request was sent. This patch fixes this regression.
> ---
>   src/rpc/virnetserver.c        |   18 +++++++++---------
>   src/rpc/virnetserverprogram.c |   36 ++++++++++++++++++++++++++++++------
>   src/rpc/virnetserverprogram.h |    4 ++++
>   3 files changed, 43 insertions(+), 15 deletions(-)

ACK.

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




More information about the libvir-list mailing list