[Libevent-users] Linux, epoll, libevent, regressions, stability, and 2.0.9

2010-11-20 Thread Nick Mathewson
I come to you with a heavy heart. So, as Gilad found out a week or so ago, LInux has some serious issues when using epoll() with dup(). If you have two fds that refer to the same file, and you tell epoll_ctl() to listen for events on one, and then you close it but leave the other one open, epoll_

Re: [Libevent-users] Linux, epoll, libevent, regressions, stability, and 2.0.9

2010-11-20 Thread Chris Ross
I'm writing this as someone who uses 1.4 extensively and is considering the migration to 2.x. I consider a change between 1 and 2 a major version change. I would not feel hard done by if the behaviour changes between major release version for good reason - in the case of libevent, performance

[Libevent-users] Threading question in libevent

2010-11-20 Thread Sherif Fanous
Hello I have my event callback receiving data from the network using recv. If recv returns 0 (FIN received), I call a function to disconnect and cleanup. Part of my cleanup is as follows if (server->receive_event) { event_free(server->receive_event); server->receive_event = NULL; } I h