render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c401cc
From 1e3576cf09305e52cb03e5d28ac86168104a0b2a Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <1e3576cf09305e52cb03e5d28ac86168104a0b2a.1390394206.git.jdenemar@redhat.com>
c401cc
From: Martin Kletzander <mkletzan@redhat.com>
c401cc
Date: Fri, 17 Jan 2014 08:52:31 +0100
c401cc
Subject: [PATCH] qemu: Change the default unix monitor timeout
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=892273
c401cc
c401cc
There is a number of reported issues when we fail starting a domain.
c401cc
Turns out that, in some scenarios like high load, 3 second timeout is
c401cc
not enough for qemu to start up to the phase where the socket is
c401cc
created.  Since there is no downside of waiting longer, raise the
c401cc
timeout right to 30 seconds.
c401cc
c401cc
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c401cc
(cherry picked from commit fe89b687a02d1a8e1dce695a67b4f9d2c254d7b9)
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 src/qemu/qemu_monitor.c | 2 +-
c401cc
 1 file changed, 1 insertion(+), 1 deletion(-)
c401cc
c401cc
diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
c401cc
index c780786..46b6d1a 100644
c401cc
--- a/src/qemu/qemu_monitor.c
c401cc
+++ b/src/qemu/qemu_monitor.c
c401cc
@@ -269,7 +269,7 @@ qemuMonitorOpenUnix(const char *monitor, pid_t cpid)
c401cc
 {
c401cc
     struct sockaddr_un addr;
c401cc
     int monfd;
c401cc
-    int timeout = 3; /* In seconds */
c401cc
+    int timeout = 30; /* In seconds */
c401cc
     int ret;
c401cc
     size_t i = 0;
c401cc
 
c401cc
-- 
c401cc
1.8.5.3
c401cc