RST docs + connection error on test

This commit is contained in:
Domingo Dirutigliano
2025-04-12 20:34:45 +02:00
parent d0b2c67554
commit 129a262704
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ class TcpServer:
def recv_packet(self):
try:
return self.client_sock.recv(4096)
except TimeoutError:
except (TimeoutError, ConnectionResetError):
if self.verbose:
traceback.print_exc()
return False
@@ -76,4 +76,4 @@ class TcpServer:
self.close_client()
if get_data:
return received_data
return received_data == data
return received_data == data