forked from M-Labs/artiq
1
0
Fork 0

protocols/pc_rpc: use timeout only for connecting. Closes #161

This commit is contained in:
Sebastien Bourdeauducq 2016-01-14 17:50:36 -07:00
parent a9cf89215b
commit 5bf257818d
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ class BestEffortClient:
else:
self.__socket = socket.create_connection(
(self.__host, self.__port), timeout)
self.__socket.settimeout(None)
self.__socket.sendall(_init_string)
server_identification = self.__recv()
target_name = _validate_target_name(self.__target_name,