[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] Libevent HTTP and pipeline mode
On Fri, Jul 30, 2010 at 9:23 AM, Anton Zem <handychess@xxxxxxxxx> 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_connection_done(evcon);
> return;
> }
> in pipeline mode the req->ntoread go negative (previous request eat too much
> of data by eating start of the next request), and connection is in unusable
> state. No more handlers ever called and connection is not dropped.
This should be fixed in branch "20_http_readlen", which (if it tests
out okay) I want to merge into 2.0.9.
yrs,
--
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.