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
d75d48a2
Commit
d75d48a2
authored
Jul 14, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
parent
6efcbf86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Lib/asyncore.py
Lib/asyncore.py
+4
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/asyncore.py
View file @
d75d48a2
...
...
@@ -130,7 +130,8 @@ def poll(timeout=0.0, map=None):
is_w
=
obj
.
writable
()
if
is_r
:
r
.
append
(
fd
)
if
is_w
:
# accepting sockets should not be writable
if
is_w
and
not
obj
.
accepting
:
w
.
append
(
fd
)
if
is_r
or
is_w
:
e
.
append
(
fd
)
...
...
@@ -177,7 +178,8 @@ def poll2(timeout=0.0, map=None):
flags
=
0
if
obj
.
readable
():
flags
|=
select
.
POLLIN
|
select
.
POLLPRI
if
obj
.
writable
():
# accepting sockets should not be writable
if
obj
.
writable
()
and
not
obj
.
accepting
:
flags
|=
select
.
POLLOUT
if
flags
:
# Only check for exceptions if object was either readable
...
...
Misc/NEWS
View file @
d75d48a2
...
...
@@ -22,6 +22,8 @@ What's New in Python 3.1.4?
Library
-------
- Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
- Issue #12009: Fixed regression in netrc file comment handling.
Extension Modules
...
...
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