Re: [Libevent-users] 100% cpu utilization with openssl bufferevent.

2010-05-03 Thread Nick Mathewson
On Thu, Apr 29, 2010 at 2:14 PM, Sebastian Sjöberg wrote: [...] > Cheers, I haven't yet been able to reproduce it when disabling epoll. > > I've started to debug the evmap_io_active calls and after a while there are a > no events being activated as you said so I guess at some point the there's a

[Libevent-users] resuming libevent2 after closing all file descriptors

2010-05-03 Thread Péter Szabó
Hi, I'm doing the following with libevent 2.0.4 on Linux: strcut event_base *base = event_init() ... /* not registering any events */ for (int fd = 3; fd < 256; ++fd) close(fd); event_reinit(base); ... This eventually reports the following warning: [warn] Epoll ADD on fd 7 failed.

Re: [Libevent-users] registering the same filehandle with EV_READ (without EV_PERSIST) multiple times

2010-05-03 Thread Péter Szabó
>> I'd like to register two struct event's for the same filehandle, with >> EV_READ (without EV_PERSIST), with multiple callbacks, and whenever >> the file becomes readable, I'd like to get both of my callbacks be >> called > > Libevent 1.4.x and earlier don't support this.  Libevent 2.0.x does. T

Re: [Libevent-users] 100% cpu utilization with openssl bufferevent.

2010-05-03 Thread Sebastian Sjöberg
On Apr 30, 2010, at 11:48 AM, Pavel Pisa wrote: > Hello All, > Hi, Thanks for the nice information. [...] > > You can easily check, if this is cause of your troubles > by running same code on 2.6.30+ kernel. > If you need correct behavior even on older kernels, > then it can be problematic.