]> xenbits.xensource.com Git - libvirt.git/commit
rpc: Don't close connection if program is unknown
authorJiri Denemark <jdenemar@redhat.com>
Fri, 26 Aug 2011 15:11:03 +0000 (17:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 26 Aug 2011 15:29:44 +0000 (17:29 +0200)
commit22d744d0c7b8f6b5ac6ece4563b30d61435eacbb
tree5c93d1cafece7d48461464fbde05c6607f8116a7
parentc4f91b144c1ce43ba83ca45f0c0c818f1bca55be
rpc: Don't close connection if program is unknown

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 send an error reply to any request with unknown program.
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
src/rpc/virnetserverprogram.c
src/rpc/virnetserverprogram.h