Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7b54e756
Commit
7b54e756
authored
May 24, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #5715: In socketserver, close the server socket in the child process.
parent
7963a35b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/socketserver.py
Lib/socketserver.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/socketserver.py
View file @
7b54e756
...
...
@@ -529,10 +529,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
)
os
.
_exit
(
0
)
...
...
Misc/NEWS
View file @
7b54e756
...
...
@@ -75,6 +75,8 @@ Core and Builtins
Library
-------
- Issue #5715: In socketserver, close the server socket in the child process.
- Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment