Close socket on shutdown.

This commit is contained in:
Aldo Cortesi 2012-06-20 10:51:02 +12:00
parent ce1ef55456
commit 084be7684d

View File

@ -158,6 +158,7 @@ class TCPServer:
def shutdown(self):
self.__shutdown_request = True
self.__is_shut_down.wait()
self.socket.close()
self.handle_shutdown()
def handle_error(self, request, client_address, fp=sys.stderr):