libev epoll and EPOLLRDHUP
schmorp at schmorp.de
Thu Jun 13 01:31:17 CEST 2013
On Wed, Jun 12, 2013 at 05:19:31PM +0530, "Chaliha, Sayan" <sayan.chaliha at in.verizon.com> wrote:
> I'd like a notification from libev when a TCP connection goes down. This
> works fine with poll backend, but with epoll backend it doesn't. My
> guess is because EPOLLRDHUP is not being handled. Could I have a patch
> for this please?
Hi - this doesn't make much sense: libev already notifies you when a tcp
connection goes down (for both read and write watcher depending on which
half is closed). It makes no obvious sense for libev to handle EPOLLRDHUP
in any way.
Could you describe:
- what behaviour you are seeing.
- what behaviour do you expect instead.
- what exactly you think should be changed.
- how poll differs from epoll in generated signals.
Also, since epoll is extremely badly designed and implemented, maybe you
are hitting a bug in your kernel - which kernel version do you see the
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
More information about the libev