Re: [Libevent-users] Constraining size of output buffer

2011-06-25 Thread Mina Naguib
On 2011-06-24, at 10:57 PM, Nick Mathewson wrote: > Tentatively, I'm going to blame this one on some kind of buffering or > stalling issue in netcat or in your terminal, not on libevent. When I > write a trivial libevent-based client program to hammer your server > program, it works fine. See t

Re: [Libevent-users] Constraining size of output buffer

2011-06-24 Thread Nick Mathewson
On Fri, Jun 24, 2011 at 8:22 PM, Mina Naguib wrote: > > Hi everyone > > I'm trying to keep a hostile client from causing a libevent server from > consuming too much memory in buffered data. > > Using bufferevents, I let libevent keep the input buffer within limits using > its watermark mechanism

[Libevent-users] Constraining size of output buffer

2011-06-24 Thread Mina Naguib
Hi everyone I'm trying to keep a hostile client from causing a libevent server from consuming too much memory in buffered data. Using bufferevents, I let libevent keep the input buffer within limits using its watermark mechanism, and I added a simple mechanism in the server to, essentially, s