From 634cd3ba345cb499b7b82c0a458eaf608ae6bce9 Mon Sep 17 00:00:00 2001 From: Tarquin Winot Date: Wed, 5 Oct 2022 13:34:19 +0200 Subject: [PATCH] Update client.py Subsequent reconnections to server do not respect wait/timeout settings provided on connect() --- src/socketio/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/socketio/client.py b/src/socketio/client.py index 58d381b..e2c48bd 100644 --- a/src/socketio/client.py +++ b/src/socketio/client.py @@ -311,6 +311,8 @@ class Client(object): self.connection_transports = transports self.connection_namespaces = namespaces self.socketio_path = socketio_path + self.wait = wait + self.wait_timeout = wait_timeout if namespaces is None: namespaces = list(set(self.handlers.keys()).union( @@ -662,7 +664,9 @@ class Client(object): auth=self.connection_auth, transports=self.connection_transports, 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): pass else: