From: unknown Date: Tue, 30 Mar 2010 13:40:17 +0000 (-0500) Subject: When using the select based IOLoop, select can throw an error if based to many socket... X-Git-Tag: v1.0.0~63^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33709a0ec4acf786d8ee843f8f3fbd520f59068;p=thirdparty%2Ftornado.git When using the select based IOLoop, select can throw an error if based to many socket. This does not have an errno --- diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 572b48c20..ebdcc8c74 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -197,7 +197,7 @@ class IOLoop(object): try: event_pairs = self._impl.poll(poll_timeout) except Exception, e: - if e.errno == errno.EINTR: + if hasattr(e, 'errno') and e.errno == errno.EINTR: _log.warning("Interrupted system call", exc_info=1) continue else: