mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
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
Block a user