[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Hi,

On Sun, Jan 2, 2011 at 10:15 AM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
> On Wed, Dec 29, 2010 at 6:07 AM, Yee Keat Phuah <ykphuah@xxxxxxxxx> wrote:
> I _think_ what you're suggesting is something like adding
>
>                if (pevt->portev_events & (POLLERR|POLLHUP))
>                        res |= EV_READ|EV_WRITE;
>
> to the final loop of evport_dispatch?  Does that solve the problem for you?

Yes, that's correct! That certainly fixed the issue for my problem.

I have also found a way to "solve" this issue without code changes, I
just request for EV_FEATURE_FDS, which is not supported by the evport
backend.

Cheers,
Phuah Yee Keat
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.