Re: [Libevent-users] Libevent HTTP and pipeline mode

2010-10-26 Thread Nick Mathewson
On Fri, Jul 30, 2010 at 9:23 AM, Anton Zem wrote: > I found that libebvent's HTTP Server cannot work properly in pipelined mode. > The problem is in code >    if (req->ntoread == 0) { >         bufferevent_disable(evcon->bufev, EV_READ); >         /* Completed content length */ >         evhttp_co

[Libevent-users] Libevent HTTP and pipeline mode

2010-07-30 Thread Anton Zem
I found that libebvent's HTTP Server cannot work properly in pipelined mode. The problem is in code if (req->ntoread == 0) { bufferevent_disable(evcon->bufev, EV_READ); /* Completed content length */ evhttp_connection_done(evcon); return; } in pipeline mode

[Libevent-users] Libevent HTTP and pipeline mode

2010-07-26 Thread Anton Zem
Libevent seems to have no HTTP pipeline mode support. If I send the second request immediatly after the first, the HTTP connection just hangs. req->ntoread goes negative (request got more bytes than it was expecting, so it stays in this state forever). Are there any ideas of how HTTP pipelining is