socket.SOCK_STREAM)try:client_socket.setblocking(0)# Set socket to non-blocking modeclient_socket.connect(server_address)exceptsocket.errorase:ife.errno==errno.EINPROGRESS:# Error 115: Operation now in progressprint("Connection in progress. Try again later.")else:print...
return getattr(self._sock,name)(*args) socket.error: [Errno 115] Operation now in progress Thisanswerto a similar problem guesses that this is caused by theconnect()function taking longer than usual. Thus, all subsequent action on the socket will fail. I can't remember seeing anything about...
I assume this is a duplicate of#267where OpenVPN's code to connect via SOCKs proxy did not use the same timeout as for "normal connections" - so a slow SOCKS proxy would always cause an error after 5 seconds, while a timeout of 120 seconds would be expected. This has now been fixe...
_connection(addr, source_address=source, timeout=self._keepalive) File "/usr/lib/python3.6/socket.py", line 724, in create_connection raise err File "/usr/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa) BlockingIOError: [Errno 115] Operation now in progress...