Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epoll reactor cannot detect stream socket peer close event #1561

Open
Chilledheart opened this issue Nov 26, 2024 · 1 comment
Open

epoll reactor cannot detect stream socket peer close event #1561

Chilledheart opened this issue Nov 26, 2024 · 1 comment

Comments

@Chilledheart
Copy link
Contributor

from man epoll_ctl:

   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 monitoring.)

However, this event is never used in epoll_reactor.ipp.

Chilledheart added a commit to Chilledheart/asio that referenced this issue Nov 26, 2024
@Chilledheart
Copy link
Contributor Author

For similar support for kqueue Chilledheart@d9d7cfd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant