On Sat, Jul 23, 2011 at 2:00 AM, Justin Patrin <
jpa...@lolapps.com> wrote:
> I've added calls to gevent.socket.wait_read() and this causes the
> greenlet to give up control and allow other greenlets to run but it
> also does not block. My read loop is still running constantly, causing
> high CPU usage even though no data is received. Am I missing
> something? I looked into how socket.recv is supposed to work and
> looked at the gevent.socket.socket.recv call which appears as if it
> should block with wait_read() if EWOULDBLOCK is raised, but if I step
> into that code it never gets past the return. sock.recv(*args) is
> always just returning an empty string.