asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag

to poll(2): don't set them.
This commit is contained in:
Charles-François Natali 2011-11-05 14:16:01 +01:00
parent 064e39330d
commit 88c2e45367
1 changed files with 0 additions and 3 deletions

View File

@ -181,9 +181,6 @@ def poll2(timeout=0.0, map=None):
if obj.writable() and not obj.accepting:
flags |= select.POLLOUT
if flags:
# Only check for exceptions if object was either readable
# or writable.
flags |= select.POLLERR | select.POLLHUP | select.POLLNVAL
pollster.register(fd, flags)
try:
r = pollster.poll(timeout)