[libvirt] [PATCH] qemu: Add support for changing timeout value to open unix monitor socket

Pavel Fux pavel at stratoscale.com
Mon Dec 30 17:23:00 UTC 2013


Hi,

I am talking about *Bug
987088*<https://bugzilla.redhat.com/show_bug.cgi?id=987088>,
I have added a patch and a description of the fix, this is a copy of my
comment on the bug:

the default code behavior is wait for 3 seconds and if the socket is not
opened yet, print this error and terminate.

the code is in src/qemu/qemu_monitor.c in function qemuMonitorOpenUnix.

In 2009 there was a patch that added the original 3 seconds retry, the
patch can be found here:

http://www.redhat.com/archives/libvir-list/2009-July/msg00335.html

I have added a patch with this solution:

the default behavior stays the same, but a user can add a configuration
variable to qemu.conf and change the timeout value.

every system needs a different value according to their system
configuration but anyway 3 seconds is not suitable for all cases.

I am attaching my patch.

Pavel Fux.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131230/5a7fbc77/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-monitor-timeout-configuration.patch
Type: text/x-patch
Size: 2586 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131230/5a7fbc77/attachment-0001.bin>


More information about the libvir-list mailing list