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

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



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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


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