Skip to content
Snippets Groups Projects
Commit 34e8d743 authored by Peter Scott's avatar Peter Scott
Browse files

Make idle loop work correctly with Eventlet and plain threads, with no 100% CPU busy loop.

parent 10927576
No related branches found
No related tags found
No related merge requests found
......@@ -521,11 +521,8 @@ if __name__ == '__main__':
server.setDaemon(True)
server.start()
try:
if green_threads:
while True:
eventlet.sleep()
else:
signal.pause()
while True:
time.sleep(10)
except KeyboardInterrupt:
raise SystemExit(1)
except socket.error, e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment