]> git.ipfire.org Git - thirdparty/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)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 20 Jan 2014 22:07:38 +0000 (22:07 +0000)
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>
(cherry picked from commit fe89b687a02d1a8e1dce695a67b4f9d2c254d7b9)

src/qemu/qemu_monitor.c

index 7e26377f5aaa0042bdda8ec9b29c40ed99e0a75e..55d0ad136e60f9b900a1b2a9353a1a7409945a99 100644 (file)
@@ -268,7 +268,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;