mirror of
https://github.com/python/cpython.git
synced 2024-12-12 19:33:52 +08:00
close asyncore.dispatcher on EOF
This commit is contained in:
parent
980f3149a2
commit
2f5799b7b0
@ -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…
Reference in New Issue
Block a user