close asyncore.dispatcher on EOF

This commit is contained in:
Bill Janssen 2008-06-29 00:08:12 +00:00
parent 980f3149a2
commit 2f5799b7b0
1 changed files with 1 additions and 0 deletions

View File

@ -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)