From 1e3576cf09305e52cb03e5d28ac86168104a0b2a Mon Sep 17 00:00:00 2001 Message-Id: <1e3576cf09305e52cb03e5d28ac86168104a0b2a.1390394206.git.jdenemar@redhat.com> From: Martin Kletzander Date: Fri, 17 Jan 2014 08:52:31 +0100 Subject: [PATCH] qemu: Change the default unix monitor timeout https://bugzilla.redhat.com/show_bug.cgi?id=892273 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 (cherry picked from commit fe89b687a02d1a8e1dce695a67b4f9d2c254d7b9) Signed-off-by: Jiri Denemark --- src/qemu/qemu_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index c780786..46b6d1a 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -269,7 +269,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; -- 1.8.5.3