Re: [Libevent-users] Mixing edge-triggered and level-triggered events

2012-07-09 Thread MigueL DíaZ
On Thu, Jul 5, 2012 at 4:35 PM, Nick Mathewson wrote: > On Mon, Jul 2, 2012 at 4:23 AM, Avi Bab wrote: > > This transmission may contain information that is privileged, > confidential, and/or exempt from disclosure under applicable law. If you > are not the intended recipient, you are hereby not

Re: [Libevent-users] Mixing edge-triggered and level-triggered events

2012-07-05 Thread Nick Mathewson
On Mon, Jul 2, 2012 at 4:23 AM, Avi Bab wrote: > > I am using libevent-2.0.18-stable running on Linux (CentOs 6.2) to implement > an HTTP proxy. > For each connection I define: (i) an edge-triggered read event and (ii) a > socket-based bufferevent with EV_WRITE enabled and EV_READ disabled. Rig

[Libevent-users] Mixing edge-triggered and level-triggered events

2012-07-02 Thread Avi Bab
I am using libevent-2.0.18-stable running on Linux (CentOs 6.2) to implement an HTTP proxy. For each connection I define: (i) an edge-triggered read event and (ii) a socket-based bufferevent with EV_WRITE enabled and EV_READ disabled. Using strace I see that adding the first event calls: epoll_