Skip to content

Commit 23a3514

Browse files
committed
changed the connection to non-blocking
1 parent 4958f04 commit 23a3514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/unityagents/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, file_name, worker_id=0,
8383
try:
8484
self._socket.listen(1)
8585
self._conn, _ = self._socket.accept()
86-
self._conn.settimeout(30)
86+
self._conn.setblocking(1)
8787
p = self._conn.recv(self._buffer_size).decode('utf-8')
8888
p = json.loads(p)
8989
except socket.timeout as e:

0 commit comments

Comments
 (0)