epollrdhup

Searching…

www.man7.org

epoll_ctl (2) — Linux manual page - man7.org

EPOLLRDHUP is an event type that indicates the stream socket peer closed connection, or shut down writing half of connection. It is useful for writing simple code to detect peer shutdown when using edge-triggered moni...

stackoverflow.com

Why do we need EPOLLRDHUP when EPOLLHUP seems enough?

Aug 14, 2018 · EPOLLHUP means that the peer closed their end of the connection. Writing to the connection is closed, and after any (possible) readable data is consumed, reading from the connection is closed, too. EPOL...

blog.csdn.net

Epoll事件EPOLLRDHUP详解 - CSDN博客

EPOLLRDHUP 是 Linux 系统中 epoll 机制的一个事件类型,用于检测 TCP 连接的关闭事件。 它是 Linux 独有的特性(自内核 2.6.17 开始引入),能够帮助开发者高效地监控连接的关闭状态,避免资源泄漏或无效的 I/O 操作。

dengking.github.io

Introduction - Linux-OS - GitHub Pages

You use EPOLLRDHUP to detect peer shutdown, not EPOLLHUP (which signals an unexpected close of the socket, i.e. usually an internal error). Using it is really simple, just "or" the flag with any other flags that you a...

linux.die.net

epoll_ctl (2) - Linux man page

EPOLLRDHUP (since Linux 2.6.17) Stream socket peer closed connection, or shut down writing half of connection. (This flag is especially useful for writing simple code to detect peer shutdown when using Edge Triggered ...

man.archlinux.org

epoll_ctl (2) — Arch manual pages

When a wakeup event occurs and multiple epoll file descriptors are attached to the same target file using EPOLLEXCLUSIVE, one or more of the epoll file descriptors will receive an event with epoll_wait (2).

blog.csdn.net

简约而不简单epoll之EPOLLRDHUP - CSDN博客

本文深入探讨了EPOLLRDHUP在不同场景下的应用,包括客户端直接close、shutdown读和写的不同效果,以及如何利用EPOLLRDHUP判断对端socket状态,减少系统调用。

www.man7.org

epoll (7) — Linux manual page

The epoll API performs a similar task to poll(2): monitoring. multiple file descriptors to see if I/O is possible on any of. them. The epoll API can be used either as an edge-triggered or a. level-triggered interface ...