From: Charles-François Natali Date: Sat, 5 Nov 2011 13:16:01 +0000 (+0100) Subject: asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag X-Git-Tag: v3.3.0a1~938 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88c2e45367e97b760efc1aec88f98dd3cd54a9c3;p=python asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag to poll(2): don't set them. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 6d4bbbe309..920444d89a 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -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)