mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
close asyncore.dispatcher on EOF
This commit is contained in:
parent
980f3149a2
commit
2f5799b7b0
1 changed files with 1 additions and 0 deletions
|
@ -529,6 +529,7 @@ else:
|
|||
self.send(str(data, 'ASCII', 'strict').lower().encode('ASCII', 'strict'))
|
||||
|
||||
def handle_close(self):
|
||||
self.close()
|
||||
if support.verbose:
|
||||
sys.stdout.write(" server: closed connection %s\n" % self.socket)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue