[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] evhttp: Abort after receiving a certain number of bytes
On Mon, Feb 21, 2011 at 10:26 AM, Constantine Verutin
<cverutin@xxxxxxxxx> wrote:
> Hi,
>>
>> I just tested and the following change seems to work fine:
>>
>> if (req->body_size + req->ntoread > req->evcon->max_body_size) {
>
> This is wrong case of chunked response and inaccurate when ntoread < 0.
I've added a fix to the patches-2.0 branch based on your and Bas's
code. Thanks to everyone for the analysis and here; please let me
know if there are any issues with my fix.
yrs,
--
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.