Skip to content

Commit 88c2e45

Browse files
author
Charles-François Natali
committed
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.
1 parent 064e393 commit 88c2e45

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lib/asyncore.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ def poll2(timeout=0.0, map=None):
181181
if obj.writable() and not obj.accepting:
182182
flags |= select.POLLOUT
183183
if flags:
184-
# Only check for exceptions if object was either readable
185-
# or writable.
186-
flags |= select.POLLERR | select.POLLHUP | select.POLLNVAL
187184
pollster.register(fd, flags)
188185
try:
189186
r = pollster.poll(timeout)

0 commit comments

Comments
 (0)