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 = []
|
||||||
self.active_children.append(pid)
|
self.active_children.append(pid)
|
||||||
self.close_request(request)
|
self.close_request(request)
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
# Child process.
|
# Child process.
|
||||||
# This must never return, hence os._exit()!
|
# This must never return, hence os._exit()!
|
||||||
|
self.socket.close()
|
||||||
try:
|
try:
|
||||||
self.finish_request(request, client_address)
|
self.finish_request(request, client_address)
|
||||||
self.shutdown_request(request)
|
self.shutdown_request(request)
|
||||||
|
|
|
@ -13,6 +13,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5715: In socketserver, close the server socket in the child process.
|
||||||
|
|
||||||
- Correct lookup of __dir__ on objects. Among other things, this causes errors
|
- Correct lookup of __dir__ on objects. Among other things, this causes errors
|
||||||
besides AttributeError found on lookup to be propagated.
|
besides AttributeError found on lookup to be propagated.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue