On Mon, Apr 30, 2012 at 12:28 PM, Jingchao Hu <
jingc...@gmail.com> wrote:
> I expected it to print Hello World 3 times after 1/2/3 seconds, but it
> just hangs, why? Am I using it in a wrong way?
Add
from gevent import monkey; monkey.patch_all()
to the beginning of your file.
Without it, request.get() reads a data from a socket in a blocking way
but it since it's blocking, it also blocks the WSGIServer running in
the same process and thus it can never read anything.