Skip to content

Commit

Permalink
#1837: take longer to re-probe delete dead sockets, make it configura…
Browse files Browse the repository at this point in the history
…ble via env var

git-svn-id: https://xpra.org/svn/Xpra/trunk@19571 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 6, 2018
1 parent 0b8c0c7 commit 4683562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
SYSTEMD_RUN = envbool("XPRA_SYSTEMD_RUN", True)
LOG_SYSTEMD_WRAP = envbool("XPRA_LOG_SYSTEMD_WRAP", True)
VERIFY_X11_SOCKET_TIMEOUT = envint("XPRA_VERIFY_X11_SOCKET_TIMEOUT", 1)
LIST_REPROBE_TIMEOUT = envint("XPRA_LIST_REPROBE_TIMEOUT", 10)


def nox():
Expand Down Expand Up @@ -2154,7 +2155,7 @@ def run_list(error_cb, opts, extra_args):
if reprobe:
sys.stdout.write("Re-probing unknown sessions in: %s\n" % csv(list(set([x[0] for x in unknown]))))
counter = 0
while reprobe and counter<5:
while reprobe and counter<LIST_REPROBE_TIMEOUT:
sleep(1)
counter += 1
probe_list = list(reprobe)
Expand Down

0 comments on commit 4683562

Please sign in to comment.