Skip to content

Commit

Permalink
#1777: make displayfd timeout configurable
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@18661 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 2, 2018
1 parent be83cbe commit ea7f03f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/platform/displayfd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit ea7f03f

Please sign in to comment.