Re: [Libevent-users] Putting event on the top of the queue

2011-05-02 Thread Nick Mathewson
On Tue, Apr 26, 2011 at 6:10 PM, Gordiychuck Oleg wrote: > Hello! > > I'm using event2 libs and i want to know if it is possible to put new event > on the top of the queue. > > For example, i have next events queue: > > ev1 -> ev2 -> ev3 > > While processing ev1 an error occured. Now i want to cr

Re: [Libevent-users] http server and infinite streams

2011-05-02 Thread Victor Boivie
>> https://github.com/clifffrey/Libevent/tree/http-transfer-throttling >> >> I believe that the changes there are enough to prevent out-of-memory >> conditions when sending or receiving huge HTTP requests. > > Great; I will try to review and either merge or comment some time this > week.  Please bu

Re: [Libevent-users] http server and infinite streams

2011-05-02 Thread Nick Mathewson
On Sat, Apr 30, 2011 at 9:55 PM, Cliff Frey wrote: > I added tests, handled the infinite-receive case as well as the > infinite-send case, and slightly renamed a few things. > > https://github.com/clifffrey/Libevent/tree/http-transfer-throttling > > I believe that the changes there are enough to p

Re: [Libevent-users] event_active bug?

2011-05-02 Thread Nick Mathewson
On Fri, Apr 29, 2011 at 5:43 AM, Michał Król wrote: > Hi, > > I had some problems using event_active() function, and as I'm not sure > weather it's a bug or not I've decided to write about it. > > I'm using two event bases, sender_base and feeder_base. sender_base runs as > a main program loop usi

Re: [Libevent-users] event_add from a different thread while event loop is running

2011-05-02 Thread Nick Mathewson
On Mon, May 2, 2011 at 7:18 PM, D.P. wrote: > Hi, I have a question regarding adding an event from a different thread > (different from the one event_base_dispatch was called). > Initially I create an event_base, add a listener socket to it, and do > event_base_dispatch. When a listener socket get

[Libevent-users] event_add from a different thread while event loop is running

2011-05-02 Thread D.P.
Hi, I have a question regarding adding an event from a different thread (different from the one event_base_dispatch was called). Initially I create an event_base, add a listener socket to it, and do event_base_dispatch. When a listener socket gets an incoming connection, it will add the new client