Re: [Libevent-users] Handling POLLHUP in evport.c

2011-01-09 Thread Yee Keat Phuah
Hi, On Sun, Jan 2, 2011 at 10:15 AM, Nick Mathewson wrote: > On Wed, Dec 29, 2010 at 6:07 AM, Yee Keat Phuah wrote: > I _think_ what you're suggesting is something like adding > >                if (pevt->portev_events & (POLLERR|POLLHUP)) >                        res |= EV_READ|EV_WRITE; > > to

Re: [Libevent-users] Handling POLLHUP in evport.c

2011-01-01 Thread Nick Mathewson
On Wed, Dec 29, 2010 at 6:07 AM, Yee Keat Phuah wrote: > Hi, > > Recently I came across a scenario where I added a unix pipe in > bufferevent, but then when the pipe is closed, I experience an > infinite loop. > > This happens in Solaris 10 using evport by default. > > Its traced down to evport.c:

[Libevent-users] Handling POLLHUP in evport.c

2010-12-29 Thread Yee Keat Phuah
Hi, Recently I came across a scenario where I added a unix pipe in bufferevent, but then when the pipe is closed, I experience an infinite loop. This happens in Solaris 10 using evport by default. Its traced down to evport.c:460. Contrary to devpoll.c, epoll.c and poll.c, there's no handling of