Commit cfb40aa3 authored by Denis Bilenko's avatar Denis Bilenko

Hub: if dispatch() raises an error, re-reraise it in MAIN without killing the Hub

parent 3912ca10
......@@ -165,7 +165,7 @@ class Hub(greenlet):
except IOError, ex:
loop_count += 1
if loop_count > 15:
raise
MAIN.throw(*sys.exc_info())
sys.stderr.write('Restarting gevent.core.dispatch() after an error [%s]: %s\n' % (loop_count, ex))
continue
raise DispatchExit(result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment