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