mirror of https://github.com/python/cpython
make sure we close the active channels when eof is received on them
This commit is contained in:
parent
934b16d0c2
commit
de34d91eb0
|
@ -386,6 +386,7 @@ else:
|
||||||
self.send(data.lower())
|
self.send(data.lower())
|
||||||
|
|
||||||
def handle_close(self):
|
def handle_close(self):
|
||||||
|
self.close()
|
||||||
if test_support.verbose:
|
if test_support.verbose:
|
||||||
sys.stdout.write(" server: closed connection %s\n" % self.socket)
|
sys.stdout.write(" server: closed connection %s\n" % self.socket)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue