[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/async.py remove comment about poll2 having problems; it might somewhere, but not
Benji York
benji at zope.com
Thu Apr 16 21:31:46 EDT 2009
Log message for revision 99228:
remove comment about poll2 having problems; it might somewhere, but not
on my box; not that it makes any difference, because it's not faster on
my box either, so no need to mention it at all
Changed:
U zc.ngi/trunk/src/zc/ngi/async.py
-=-
Modified: zc.ngi/trunk/src/zc/ngi/async.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/async.py 2009-04-17 00:49:03 UTC (rev 99227)
+++ zc.ngi/trunk/src/zc/ngi/async.py 2009-04-17 01:31:45 UTC (rev 99228)
@@ -531,19 +531,6 @@
timeout = 30.0
map = _map
connectors = _connectors
-
-# There seem to be some issues with poll.
-## if (hasattr(select, 'poll') and
-## (sys.version_info[:2] > (2, 3)) # There seem to be poll issues in 2.3
-## ):
-## poll_fun = asyncore.poll3
-## else:
-## poll_fun = asyncore.poll
-
-
- # At least for now, stick with tried and true select
- poll_fun = asyncore.poll
-
logger = logging.getLogger('zc.ngi.async.loop')
while map:
@@ -552,7 +539,7 @@
c.connect()
try:
- poll_fun(timeout, map)
+ asyncore.poll(timeout, map)
except:
logger.exception('loop error')
raise
@@ -560,4 +547,3 @@
_thread = threading.Thread(target=loop)
_thread.setDaemon(True)
_thread.start()
-
More information about the Checkins
mailing list