Re: [Libevent-users] evhttp: Abort after receiving a certain number of bytes

2011-02-15 Thread Nick Mathewson
On Tue, Feb 15, 2011 at 5:42 AM, Bas Verhoeven wrote: > Hi, > > Is there some way to tell evhttp (in libevent2) to abort a request once it > has received more than bytes of data? > evhttp_connection_set_max_body_size() sounds like what you're asking for. cheers, -- Nick ***

Re: [Libevent-users] evhttp_accept_socket_with_handle() implies LEV_CLOSE_ON_FREE on underlying evconnlistener

2011-02-15 Thread Constantine Verutin
Hi Nick, On Fri, Feb 11, 2011 at 9:13 PM, Nick Mathewson wrote: > Well, something's certainly wrong here. I'm not sure whether to call > it a bug in the documentation or a bug in the code. My inclination is > to call the code correct and change the doxygen comment from > > "This function does

[Libevent-users] evhttp: Abort after receiving a certain number of bytes

2011-02-15 Thread Bas Verhoeven
Hi, Is there some way to tell evhttp (in libevent2) to abort a request once it has received more than bytes of data? I'm writing a small utility with a simple job of fetching a '' from a HTML page and want to make sure my utility does not end up on a site that decides to send it several meg