Home / Function/ pollRdHup() — netty Function Reference

pollRdHup() — netty Function Reference

Architecture documentation for the pollRdHup() function in AbstractIoUringChannel.java from the netty codebase.

Function java Buffer Search calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  8311957b_86d1_5783_3d8a_214c886ad3bc["pollRdHup()"]
  19011d76_ce85_4831_bbdf_3b21a88f2b1b["AbstractUringUnsafe"]
  8311957b_86d1_5783_3d8a_214c886ad3bc -->|defined in| 19011d76_ce85_4831_bbdf_3b21a88f2b1b
  fa9b16c6_c963_88d2_4e5b_2bd377a7b30c["pollAddComplete()"]
  fa9b16c6_c963_88d2_4e5b_2bd377a7b30c -->|calls| 8311957b_86d1_5783_3d8a_214c886ad3bc
  504e72a6_d5e9_6b52_5a10_ab3991dcd667["isActive()"]
  8311957b_86d1_5783_3d8a_214c886ad3bc -->|calls| 504e72a6_d5e9_6b52_5a10_ab3991dcd667
  006135d7_6d9c_a9d1_8f8f_0bb63d0ac977["scheduleFirstReadIfNeeded()"]
  8311957b_86d1_5783_3d8a_214c886ad3bc -->|calls| 006135d7_6d9c_a9d1_8f8f_0bb63d0ac977
  e589c1fb_aed1_8a87_ea86_091e377c54c9["shutdownInput()"]
  8311957b_86d1_5783_3d8a_214c886ad3bc -->|calls| e589c1fb_aed1_8a87_ea86_091e377c54c9
  style 8311957b_86d1_5783_3d8a_214c886ad3bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java lines 817–833

        private void pollRdHup(int res) {
            ioState &= ~POLL_RDHUP_SCHEDULED;
            pollRdhupId = 0;
            if (res == Native.ERRNO_ECANCELED_NEGATIVE) {
                return;
            }

            // Mark that we received a POLLRDHUP and so need to continue reading until all the input ist drained.
            recvBufAllocHandle().rdHupReceived();

            if (isActive()) {
                scheduleFirstReadIfNeeded();
            } else {
                // Just to be safe make sure the input marked as closed.
                shutdownInput(false);
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does pollRdHup() do?
pollRdHup() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java.
Where is pollRdHup() defined?
pollRdHup() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java at line 817.
What does pollRdHup() call?
pollRdHup() calls 3 function(s): isActive, scheduleFirstReadIfNeeded, shutdownInput.
What calls pollRdHup()?
pollRdHup() is called by 1 function(s): pollAddComplete.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free