GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — epoll docs still mention edge-triggered mode, while `EpollMode` says Netty always uses level-triggered mode · Issue #16427 · netty/netty

epoll docs still mention edge-triggered mode, while EpollMode says Netty always uses level-triggered mode #16427

New issue
Copy link
New issue
Copy link
Closed
#16478
Closed
epoll docs still mention edge-triggered mode, while EpollMode says Netty always uses level-triggered mode#16427
#16478
Copy link
Milestone
4.2.11.Final

Description

@doxlik
doxlik
opened on Mar 8, 2026
Issue body actions

Hi, and thank you for Netty.

While reading the current epoll transport sources, I noticed what looks like a small documentation inconsistency, so I wanted to ask whether these docs/comments should be updated.

From the current code:

  • EpollMode is deprecated with:

    Netty always uses level-triggered mode.

  • EpollChannelConfig#getEpollMode() returns LEVEL_TRIGGERED.
  • EpollChannelConfig#setEpollMode(...) is deprecated and documented as a no-op.

At the same time, several epoll docs/comments still mention EPOLL Edge-Triggered Mode, for example:

  • package javadoc in io.netty.channel.epoll
  • EpollSocketChannel
  • EpollServerSocketChannel
  • EpollDatagramChannel

So my understanding is that these edge-triggered references may now be stale, and that the epoll transport is currently level-triggered.

Would it make sense to update those docs/comments to avoid confusion?

Also, as an additional question: was edge-triggered mode intentionally dropped for correctness, maintenance, or semantic-simplicity reasons? I would be very interested to understand the rationale.

Thanks.

Activity

  1. nikitanagar08
    added a commit that references this issue on Mar 12, 2026

    Update epoll documentation to remove outdated edge-triggered mode ref…

    This issue will close once commit 0071225 is merged into the '4.2' branch.
    0071225
  2. normanmaurer commented on Mar 16, 2026

    @normanmaurer
    normanmaurer
    on Mar 16, 2026
    Member
    More actions

    @doxlik yes you are correct we only use level-triggered these days as edge-triggered didn't buy us anything and just made things more complicated. Let me fix the docs.

  3. normanmaurer
    added this to the 4.2.11.Final milestone on Mar 16, 2026
  4. franz1981 commented on Mar 16, 2026

    @franz1981
    franz1981
    on Mar 16, 2026
    Contributor
    More actions

    @normanmaurer since it forces us to fully drain and rearm reads in Netty, shouldn't we just drop edge-level triggered support at this point?
    This could be a good chance to reduce the complexity of the epoll code...

  5. normanmaurer commented on Mar 16, 2026

    @normanmaurer
    normanmaurer
    on Mar 16, 2026
    Member
    More actions

    @normanmaurer since it forces us to fully drain and rearm reads in Netty, shouldn't we just drop edge-level triggered support at this point? This could be a good chance to reduce the complexity of the epoll code...

    This is actually exactly what we did in 4.2 and 5.0 already ;)

  6. franz1981 commented on Mar 16, 2026

    @franz1981
    franz1981
    on Mar 16, 2026
    Contributor
    More actions

    I know, but 4.1 still uses it, so no plans to backport it?

  7. normanmaurer commented on Mar 16, 2026

    @normanmaurer
    normanmaurer
    on Mar 16, 2026
    Member
    More actions

    @franz1981 no as it is kind of a "breaking change".

    Reacted by Francesco Nigro
  8. normanmaurer
    added a commit that references this issue on Mar 16, 2026

    Epoll: Remove outdated docs about usage of edge-triggered

    87d5eb6
  9. normanmaurer commented on Mar 16, 2026

    @normanmaurer
    normanmaurer
    on Mar 16, 2026
    Member
    More actions

    See #16478

  10. normanmaurer
    closed this as completedin d5d6baeon Mar 16, 2026
  11. pull
    added a commit that references this issue on Mar 16, 2026

    Epoll: Remove outdated docs about usage of edge-triggered (netty#16478)

    d5d6bae
  12. chrisvest
    added a commit that references this issue on Mar 16, 2026

    Epoll: Remove outdated docs about usage of edge-triggered (netty#16478)

    acb2470
  13. normanmaurer
    added a commit that references this issue on Mar 17, 2026

    Epoll: Remove outdated docs about usage of edge-triggered (#16478) (#…

    5c95647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 4.2.11.Final

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.