https://github.com/gevent/gevent/issues/818#issuecomment-227145918
https://github.com/gevent/gevent/issues/1683