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
cf057597
Commit
cf057597
authored
May 24, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Plain Diff
Issue #5715: In socketserver, close the server socket in the child process.
parents
84f75c68
7b54e756
Changes
2
Show 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 @
cf057597
...
@@ -549,10 +549,10 @@ class ForkingMixIn:
...
@@ -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
)
...
...
Misc/NEWS
View file @
cf057597
...
@@ -13,6 +13,8 @@ Core and Builtins
...
@@ -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.
...
...
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