From c0d59140fe5be4716a5c82f640b072b963a1947c Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 13 Jul 2016 18:45:57 +0200 Subject: [PATCH] pc_rpc: increase firstcon_timeout to 1 s let's see whether this is enough on windows: http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/258/steps/python_unittest/logs/stdio test_attenuation (artiq.test.test_lda.TestLda) ... first connection attempt to ::1:3253[] failed, retrying in the background Traceback (most recent call last): File "c:\slave64\artiq-win64-test\build\artiq\protocols\pc_rpc.py", line 301, in __init__ self.__coninit(firstcon_timeout) File "c:\slave64\artiq-win64-test\build\artiq\protocols\pc_rpc.py", line 317, in __coninit (self.__host, self.__port), timeout) File "c:\slave64\miniconda\envs\buildbot-artiq-win64-test-258\lib\socket.py", line 711, in create_connection raise err File "c:\slave64\miniconda\envs\buildbot-artiq-win64-test-258\lib\socket.py", line 702, in create_connection sock.connect(sa) socket.timeout: timed out --- artiq/protocols/pc_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index 1f56481b2..22a1b0131 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -289,7 +289,7 @@ class BestEffortClient: in the background. """ def __init__(self, host, port, target_name, - firstcon_timeout=0.5, retry=5.0): + firstcon_timeout=1.0, retry=5.0): self.__host = host self.__port = port self.__target_name = target_name