Re: [Libevent-users] Bufferevent filter with greedy sender

2013-04-27 Thread Nick Mathewson
On Sat, Apr 27, 2013 at 1:52 PM, kgardenia42 wrote: > Hi, > > I have a bufferevent_filter to parse some protocol data from the "src" > evbuffer and unwrap it into the "dst" evbuffer. > > This all works fine. The problem I have, however, is that when there > is a greedy sender sending a lot of dat

[Libevent-users] Re: Bufferevent filter with greedy sender

2013-04-27 Thread kgardenia42
I should add: the low level read callback does eventually get called but only after hundreds of calls to the filter's input callback. What I'm asking for is a way to call the read callback sooner so the dst buffer doesn't get bloated. How can I control this behavior? On Sat, Apr 27, 2013 at 6:52

[Libevent-users] Bufferevent filter with greedy sender

2013-04-27 Thread kgardenia42
Hi, I have a bufferevent_filter to parse some protocol data from the "src" evbuffer and unwrap it into the "dst" evbuffer. This all works fine. The problem I have, however, is that when there is a greedy sender sending a lot of data the input_filter just keeps getting called hundreds or thousand