]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Change the default unix monitor timeout
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 9 Jan 2014 06:57:59 +0000 (07:57 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 16 Jan 2014 16:20:08 +0000 (17:20 +0100)
There is a number of reported issues when we fail starting a domain.
Turns out that, in some scenarios like high load, 3 second timeout is
not enough for qemu to start up to the phase where the socket is
created.  Since there is no downside of waiting longer, raise the
timeout right to 30 seconds.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_monitor.c

index 1fa14921cba9dcac4cad2775ce4da9999de7bd26..a9689010688df70879e2a25a0469e1c42fd94e04 100644 (file)
@@ -271,7 +271,7 @@ qemuMonitorOpenUnix(const char *monitor, pid_t cpid)
 {
     struct sockaddr_un addr;
     int monfd;
-    int timeout = 3; /* In seconds */
+    int timeout = 30; /* In seconds */
     int ret;
     size_t i = 0;