Skip to content

Commit 9b016f4

Browse files
committed
vm: Increase connection timeout for qubes.SuspendPost service
The VM may still be resuming from suspend (for example kernel may still be in progress of re-initializing grant tables), so the default 5s sometimes is too little. Increase the connection timeout to the full 'suspend_timeout' - quite excessive, but the whole call is under a timeout too, so it simply makes different type of timeouts handled uniformly now. Now, the suspend_timeout effectively covers the whole call, regardless of how much of that time was spent on waiting for the connection to be established. Fixes QubesOS/qubes-issues#9942
1 parent 8f68869 commit 9b016f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qubes/vm/qubesvm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,9 @@ async def resume(self):
17281728
try:
17291729
await asyncio.wait_for(
17301730
self.run_service_for_stdio(
1731-
"qubes.SuspendPost", user="root"
1731+
"qubes.SuspendPost",
1732+
user="root",
1733+
connection_timeout=qubes.config.suspend_timeout,
17321734
),
17331735
qubes.config.suspend_timeout,
17341736
)

0 commit comments

Comments
 (0)