Browse Source

Update client.py

Subsequent reconnections to server do not respect wait/timeout settings provided on connect()
pull/1056/head
Tarquin Winot 3 years ago
committed by GitHub
parent
commit
634cd3ba34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/socketio/client.py

6
src/socketio/client.py

@ -311,6 +311,8 @@ class Client(object):
self.connection_transports = transports self.connection_transports = transports
self.connection_namespaces = namespaces self.connection_namespaces = namespaces
self.socketio_path = socketio_path self.socketio_path = socketio_path
self.wait = wait
self.wait_timeout = wait_timeout
if namespaces is None: if namespaces is None:
namespaces = list(set(self.handlers.keys()).union( namespaces = list(set(self.handlers.keys()).union(
@ -662,7 +664,9 @@ class Client(object):
auth=self.connection_auth, auth=self.connection_auth,
transports=self.connection_transports, transports=self.connection_transports,
namespaces=self.connection_namespaces, namespaces=self.connection_namespaces,
socketio_path=self.socketio_path) socketio_path=self.socketio_path,
wait=self.wait,
wait_timeout=self.wait_timeout)
except (exceptions.ConnectionError, ValueError): except (exceptions.ConnectionError, ValueError):
pass pass
else: else:

Loading…
Cancel
Save