libvirt/daemon
Nikolay Shirokovskiy ce35122cfe daemon: fixup refcounting in close callback handling
remoteDispatchConnectCloseCallbackRegister introduced in
f484310a has problems. It refcounts network client object and in case of NOOP
driver operations for registering/unregistering close callback (any driver
except for vz) nobody will unref it later. As a result, client connection
will not be disposed and driver connection will not be closed.

The fix is easy. We don't need to refcount at all. We don't get a dangling
pointer because in remoteClientFreeFunc, which is called
upon disposing this network client object, we unregister the close
callback.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: Erik Skultety <eskultet@redhat.com>
2016-03-03 11:02:11 +01:00
..
admin_server.c adminDaemonListServers: Don't leak @srv_names array 2016-02-22 07:25:18 +01:00
admin_server.h admin: Introduce adminDaemonConnectListServers API 2016-02-17 12:46:34 +01:00
admin.c admin: Introduce adminDaemonConnectListServers API 2016-02-17 12:46:34 +01:00
admin.h admin: Move admin_server.{h,c} to admin.{h,c} 2016-02-17 12:46:34 +01:00
libvirt.rules polkit: Allow password-less access for 'libvirt' group 2015-05-04 12:57:06 -04:00
libvirtd-config.c Libvirt: Add missing default value for config option max_queued_clients 2016-03-01 18:00:19 +01:00
libvirtd-config.h rpc: Remove keepalive_required option 2015-08-10 13:15:56 +02:00
libvirtd.aug Add configuration options for permissions on daemon's admin socket 2015-06-16 13:46:21 +02:00
libvirtd.c admin: Move admin_server.{h,c} to admin.{h,c} 2016-02-17 12:46:34 +01:00
libvirtd.conf docs: update to properly reflect meaning of fields in log filter 2016-01-04 15:19:38 -05:00
libvirtd.h daemon: add connection close rpc 2016-03-01 14:18:16 +00:00
libvirtd.init.in Fix LSB requirements in service script and sync them 2016-01-11 15:49:13 +01:00
libvirtd.libxl.logrotate.in libxl: add logrotate config file 2015-05-05 09:08:11 -06:00
libvirtd.logrotate.in
libvirtd.lxc.logrotate.in
libvirtd.pod.in
libvirtd.policy.in
libvirtd.qemu.logrotate.in
libvirtd.sasl
libvirtd.service.in libvirtd: enable virtlockd/virtlogd socket activation on install 2015-12-07 17:32:49 +00:00
libvirtd.socket.in
libvirtd.sysconf
libvirtd.sysctl
libvirtd.uml.logrotate.in
libvirtd.upstart
Makefile.am admin: Introduce adminDaemonConnectListServers API 2016-02-17 12:46:34 +01:00
remote.c daemon: fixup refcounting in close callback handling 2016-03-03 11:02:11 +01:00
remote.h
stream.c
stream.h
test_libvirtd.aug.in rpc: Remove keepalive_required option 2015-08-10 13:15:56 +02:00
THREADS.txt