mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
reduce CPU usage.
This commit is contained in:
parent
7e699b7d51
commit
3cda90a214
@ -153,7 +153,7 @@ class ThreadWorker(base.Worker):
|
|||||||
# notify the arbiter we are alive
|
# notify the arbiter we are alive
|
||||||
self.notify()
|
self.notify()
|
||||||
|
|
||||||
events = self.poller.select(0.01)
|
events = self.poller.select(0.2)
|
||||||
for key, mask in events:
|
for key, mask in events:
|
||||||
callback = key.data
|
callback = key.data
|
||||||
callback(key.fileobj)
|
callback(key.fileobj)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user