]> xenbits.xensource.com Git - libvirt.git/commit
rpc: Do not use timer for sending keepalive responses
authorJiri Denemark <jdenemar@redhat.com>
Tue, 12 Jun 2012 07:01:49 +0000 (09:01 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 13 Jun 2012 13:50:55 +0000 (15:50 +0200)
commitbb85f2298e63b55b0465cb9e1f790019e99611dd
tree2c8755a0c1cbba4146d1dc3408e7a7322f046a44
parentc57103e567b0fa09f2995cdd5a25015c48f7e017
rpc: Do not use timer for sending keepalive responses

When a libvirt API is called from the main event loop (which seems to be
common in event-based glib apps), the client IO loop would properly
handle keepalive requests sent by a server but will not actually send
them because the main event loop is blocked with the API. This patch
gets rid of response timer and the thread which is processing keepalive
requests is also responsible for queueing responses for delivery.
src/rpc/virkeepalive.c
src/rpc/virkeepalive.h
src/rpc/virnetclient.c
src/rpc/virnetserverclient.c