From 8174a894f1bb2e6695501d996458df54da511dd3 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 16 Sep 2022 12:56:29 +0200 Subject: [PATCH] qmp client: increase default fallback timeout to 5s allowing slower or overloaded systems a higher chance to finish commands while not being to long to be problematic for sync api calls with their 30s total budget Signed-off-by: Thomas Lamprecht --- PVE/QMPClient.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm index b4cdcf62..9805c206 100644 --- a/PVE/QMPClient.pm +++ b/PVE/QMPClient.pm @@ -135,7 +135,9 @@ sub cmd { ) { $timeout = 10*60; # 10 mins ? } else { - $timeout = 3; # default + # NOTE: if you came here as user and want to change this, try using IO-Threads first + # which move out quite some processing of the main thread, leaving more time for QMP + $timeout = 5; # default } }