Issue #5715: In socketserver, close the server socket in the child process.
This commit is contained in:
commit
cf057597e6
|
@ -549,10 +549,10 @@ class ForkingMixIn:
|
|||
self.active_children = []
|
||||
self.active_children.append(pid)
|
||||
self.close_request(request)
|
||||
return
|
||||
else:
|
||||
# Child process.
|
||||
# This must never return, hence os._exit()!
|
||||
self.socket.close()
|
||||
try:
|
||||
self.finish_request(request, client_address)
|
||||
self.shutdown_request(request)
|
||||
|
|
Loading…
Reference in New Issue