Skip to content

Commit

Permalink
TCPEchoServer: abort the transport on connection lost to avoid Reseou…
Browse files Browse the repository at this point in the history
…rceWarnings and write() exceptions during tearDown() of SSL tests (#1582)
  • Loading branch information
gabordozsa authored Jul 31, 2024
1 parent 9211296 commit f0bb657
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/TCP_echo_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def connection_made(self, transport):

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

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

0 comments on commit f0bb657

Please sign in to comment.