From ea7f03fac6ee11b0d4749a6100bf8d12ebff7578 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 2 Mar 2018 05:34:31 +0000 Subject: [PATCH] #1777: make displayfd timeout configurable git-svn-id: https://xpra.org/svn/Xpra/trunk@18661 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/platform/displayfd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xpra/platform/displayfd.py b/src/xpra/platform/displayfd.py index 821d8df47f..357ef04779 100644 --- a/src/xpra/platform/displayfd.py +++ b/src/xpra/platform/displayfd.py @@ -5,6 +5,9 @@ import os from xpra.os_util import monotonic_time +from xpra.util import envint + +DISPLAY_FD_TIMEOUT = envint("XPRA_DISPLAY_FD_TIMEOUT", 10) def write_displayfd(w_pipe, display, timeout=10): @@ -26,7 +29,7 @@ def write_displayfd(w_pipe, display, timeout=10): raise return len(buf)==0 -def read_displayfd(r_pipe, timeout=10, proc=None): +def read_displayfd(r_pipe, timeout=DISPLAY_FD_TIMEOUT, proc=None): import select #@UnresolvedImport import errno # Read the display number from the pipe we gave to Xvfb