mirror of https://github.com/python/cpython
Explicitly close the server socket.
This commit is contained in:
parent
cfc4a8dae7
commit
f684888b1e
|
@ -109,6 +109,8 @@ class LogRecordSocketReceiver(ThreadingTCPServer):
|
||||||
abort = self.abort
|
abort = self.abort
|
||||||
#notify the main thread that we're about to exit
|
#notify the main thread that we're about to exit
|
||||||
socketDataProcessed.set()
|
socketDataProcessed.set()
|
||||||
|
# close the listen socket
|
||||||
|
self.server_close()
|
||||||
|
|
||||||
def process_request(self, request, client_address):
|
def process_request(self, request, client_address):
|
||||||
#import threading
|
#import threading
|
||||||
|
|
Loading…
Reference in New Issue