Re: [Libevent-users] event_add fails with ENOENT when on epoll

2010-04-27 Thread Denis Bilenko
Thanks to everyone replied! The problem is that it's not always possible for me to delete the event before the socket is closed. In gevent, events are setup and deleted by the library, on behalf of the user. Suppose a user has created and connected a new gevent.socket.socket instance and called

Re: [Libevent-users] evhttp request connection close

2010-04-27 Thread Sten Spans
On Tue, 27 Apr 2010, Niels Provos wrote: On Tue, Apr 27, 2010 at 12:14 AM, Sten Spans wrote: Is inserting a Connection close header in the last request the best way to complete the event-loop? Wouldn't it be better to reset _outgoing_ connections in evhttp_connection_done when all requests are

Re: [Libevent-users] evhttp request connection close

2010-04-27 Thread Niels Provos
On Tue, Apr 27, 2010 at 12:14 AM, Sten Spans wrote: > Is inserting a Connection close header in the last request the best way to > complete the event-loop? Wouldn't it be better to reset _outgoing_ > connections in evhttp_connection_done when all requests are handled? > Something like the followin

Re: [Libevent-users] When 2.x will be stable?

2010-04-27 Thread Jardel Weyrich
Travis, Here's an answer Nick gave 2 weeks ago: archives.seul.org/libevent/users/Apr-2010/msg00015.html hth -- jardel On Tue, Apr 27, 2010 at 6:24 AM, TravisBickle < kak.serpom.po.yait...@gmail.com> wrote: > Hello, > > Please tell

[Libevent-users] When 2.x will be stable?

2010-04-27 Thread TravisBickle
Hello, Please tell me when 2.x will be stable? Is there any release plan? Thanks. Best regards... *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

[Libevent-users] sigio on tty

2010-04-27 Thread mobi phil
Hello, did not find any trace if libevent would handle sigio on tty. I would like to use that for an editor where heavy edited data processing would run on the "normal stack" whereas key input would interrupt this process and provide character input. Once key input is treated, the data processing

[Libevent-users] evhttp request connection close

2010-04-27 Thread Sten Spans
I'm working on a program which needs to make a few http-post requests. The following sample code demonstrates that libevent only closes outgoing connections (and exits the event-loop) if Connection close is specified. event_init(); evcon = evhttp_connection_new("google.com", 80); req