Skip to content

Commit f0bb657

Browse files
authored
TCPEchoServer: abort the transport on connection lost to avoid ReseourceWarnings and write() exceptions during tearDown() of SSL tests (#1582)
1 parent 9211296 commit f0bb657

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/TCP_echo_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def connection_made(self, transport):
8686

8787
def connection_lost(self, exc):
8888
self.logger.log(f' {self.name}: Connection to {self.peername} lost, exception={exc}')
89+
self.transport.abort()
8990

9091
def eof_received(self):
9192
self.logger.log(f' {self.name}: EOF received from peer {self.peername}')

0 commit comments

Comments
 (0)