reduce CPU usage.

This commit is contained in:
benoitc 2014-06-01 09:50:40 +02:00
parent 7e699b7d51
commit 3cda90a214

View File

@ -153,7 +153,7 @@ class ThreadWorker(base.Worker):
# notify the arbiter we are alive
self.notify()
events = self.poller.select(0.01)
events = self.poller.select(0.2)
for key, mask in events:
callback = key.data
callback(key.fileobj)