[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 Tue, Feb 15, 2011 at 5:42 AM, Bas Verhoeven <libevent@xxxxxxxxxx> wrote:
> Hi,
>
> Is there some way to tell evhttp (in libevent2) to abort a request once it
> has received more than <x> bytes of data?
>

evhttp_connection_set_max_body_size() sounds like what you're asking for.

cheers,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.