You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After executing disconnect_clients_abruptly() self.clients list is cleared.
def _client_left_(self, handler):
client = self.handler_to_client(handler)
self.client_left(client, self)
if client in self.clients:
self.clients.remove(client)
Sometimes handle() function finished after this in point self.read_next_message():
def handle(self):
while self.keep_alive:
if not self.handshake_done:
self.handshake()
elif self.valid_client:
self.read_next_message()
It lead to execute finish() function with None client.
Because handler_to_client() does not find client in self.client list:
def handler_to_client(self, handler):
for client in self.clients:
if client['handler'] == handler:
return client
The text was updated successfully, but these errors were encountered:
vzarutskiy
changed the title
Finishing of handle() after disconnect_clients_abruptly() lead to executing _client_left_ with None
Finishing of handle() after disconnect_clients_abruptly() leads to executing _client_left_ with None
Mar 22, 2023
After executing disconnect_clients_abruptly() self.clients list is cleared.
Sometimes handle() function finished after this in point self.read_next_message():
It lead to execute finish() function with None client.
Because handler_to_client() does not find client in self.client list:
The text was updated successfully, but these errors were encountered: