Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be0a83 commit fd29083Copy full SHA for fd29083
1 file changed
lib/core/option.py
@@ -1031,7 +1031,8 @@ def _():
1031
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
1032
s = socket.socket()
1033
s._connect(address)
1034
- socket._ready[address].append(s._sock)
+ with kb.locks.socket:
1035
+ socket._ready[address].append(s._sock)
1036
except socket.error:
1037
pass
1038
finally:
0 commit comments