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
ed9e06cb
Commit
ed9e06cb
authored
Jan 13, 2013
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16955: Fix the poll() method for multiprocessing's socket
connections on Windows.
parent
f1b045f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
Lib/multiprocessing/connection.py
Lib/multiprocessing/connection.py
+1
-1
Lib/test/test_multiprocessing.py
Lib/test/test_multiprocessing.py
+11
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/multiprocessing/connection.py
View file @
ed9e06cb
...
...
@@ -405,7 +405,7 @@ class Connection(_ConnectionBase):
return
self
.
_recv
(
size
)
def
_poll
(
self
,
timeout
):
r
=
wait
([
self
.
_handle
],
timeout
)
r
=
wait
([
self
],
timeout
)
return
bool
(
r
)
...
...
Lib/test/test_multiprocessing.py
View file @
ed9e06cb
...
...
@@ -2383,6 +2383,17 @@ class _TestListenerClient(BaseTestCase):
p
.
join
()
l
.
close
()
def
test_issue16955
(
self
):
for
fam
in
self
.
connection
.
families
:
l
=
self
.
connection
.
Listener
(
family
=
fam
)
c
=
self
.
connection
.
Client
(
l
.
address
)
a
=
l
.
accept
()
a
.
send_bytes
(
b"hello"
)
self
.
assertTrue
(
c
.
poll
(
1
))
a
.
close
()
c
.
close
()
l
.
close
()
class
_TestPoll
(
unittest
.
TestCase
):
ALLOWED_TYPES
=
(
'processes'
,
'threads'
)
...
...
Misc/NEWS
View file @
ed9e06cb
...
...
@@ -147,6 +147,9 @@ Core and Builtins
Library
-------
-
Issue
#
16955
:
Fix
the
poll
()
method
for
multiprocessing
's socket
connections on Windows.
- SSLContext.load_dh_params() now properly closes the input file.
- Issue #16829: IDLE printing no longer fails if there are spaces or other
...
...
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