Commit cf057597 authored by Charles-François Natali's avatar Charles-François Natali

Issue #5715: In socketserver, close the server socket in the child process.

parents 84f75c68 7b54e756
......@@ -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)
......
......@@ -13,6 +13,8 @@ Core and Builtins
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
besides AttributeError found on lookup to be propagated.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment