[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] evhttp: Abort after receiving a certain number of bytes
- To: libevent-users@xxxxxxxxxxxxx
- Subject: Re: [Libevent-users] evhttp: Abort after receiving a certain number of bytes
- From: Nick Mathewson <nickm@xxxxxxxxxxxxx>
- Date: Tue, 15 Feb 2011 15:38:06 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Tue, 15 Feb 2011 15:38:11 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=2mOgjrcFNmUWtN/nDR5y5lu6NNFsRWvEzHecZ1ZwImI=; b=Lp5//jZ1t+PjaMa+ozF1MiX9LrNBoNyf6emmPf73i5ovMIKKTEyBRg8IDJDiZEouWu lOXutzYmwFx+xTGNWmIanOTYfRJQ1Hd00blefSVLZV5Kv4Gy3WRZvjFNl1Q6u4LM74Dq y8k5KxRPBt3+N8y5+BTElJmM6yKa8IQylmaro=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=enrPiKj1hnBHNw6mPiravbdseb3T+s3I263HY0+ujIB8DMIqyRJOjF4lxIlqHocUI7 SQ1kp6aeFLSWXN0/7fEJ8MVRAcBhjnlw8xkXQjlSeiQnQcqbitDLLLRxFSDD4nioJ60E B6YSfnL/ua0ys93hKvWxcSjHxZa3oXxh2LOFU=
- In-reply-to: <4D5A588A.9010505@xxxxxxxxxx>
- References: <4D5A588A.9010505@xxxxxxxxxx>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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.