Root cause is https://github.com/gevent/gevent/issues/21 Message to myself: Look into updating gevent.