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 — HTTP/2: changing `Http2StreamChannelConfig#setAutoRead()` from a different thread can stall or truncate a stream · Issue #17600 · netty/netty

HTTP/2: changing Http2StreamChannelConfig#setAutoRead() from a different thread can stall or truncate a stream #17600

New issue
Copy link
New issue
Copy link
Closed
#17617
Closed
HTTP/2: changing Http2StreamChannelConfig#setAutoRead() from a different thread can stall or truncate a stream#17600
#17617
Copy link
Milestone
4.2.19.Final

Description

@eager-signal
eager-signal
opened on Sep 22, 2026
Issue body actions

We have a server that proxies between two Http2Streams. It uses writability changes and auto-read to do some flow control:

peerStream.pipeline().addLast(new ChannelInboundHandlerAdapter() {
  @Override
  public void channelWritabilityChanged(final ChannelHandlerContext peerCtx) throws Exception {
    otherStreamCtx.channel().config().setAutoRead(peerStream.isWritable());
    super.channelWritabilityChanged(peerCtx);
  }
});

However, when a response body is >64 KiB (the initial flow-control window), and the streams don’t share an event loop, we experience stream stalls at 65535 bytes and truncations. We can work around it by ensuring we are on the same event loop:

if (!channel.eventLoop().inEventLoop()) {
  channel.eventLoop().execute(() -> setAutoRead(channel, autoRead));
  return;
}

channel.config().setAutoRead(autoRead);

but should this be done within Http2StreamChannelConfig? I see similar logic for Http2StreamChannelOption.AUTO_STREAM_FLOW_CONTROL.

Activity

  1. pandareen commented on Sep 24, 2026

    @pandareen
    pandareen
    on Sep 24, 2026
    Contributor
    More actions

    @eager-signal let me know if the fix looks good.

  2. pandareen
    added a commit that references this issue on Sep 25, 2026

    Flush WINDOW_UPDATE written by read() while a read is already pending

    This issue will close once commit 06105bf is merged into the '4.2' branch.
    06105bf
  3. normanmaurer
    closed this as completedin #17617on Sep 28, 2026
  4. normanmaurer
    added this to the 4.2.19.Final milestone on Sep 28, 2026
  5. normanmaurer
    added 3 commits that reference this issue on Sep 28, 2026

    HTTP/2: Fix stream stall when toggling auto-read on a child channel (n…

    ee269f5

    Auto-port 4.1: HTTP/2: Fix stream stall when toggling auto-read on a …

    c04f8e9

    Port: HTTP/2: Fix stream stall when toggling auto-read on a child cha…

    9af412f
  6. making
    added 2 commits that reference this issue on Oct 12, 2026

    Fix the netty client stall in H2DemuxClientWindowE2ETest

    527dfa3

    Pin netty to 4.2.19.Final

    7b7c8e2
  7. lltopk
    added a commit that references this issue on Oct 24, 2026

    Auto-port 4.1: HTTP/2: Fix stream stall when toggling auto-read on a …

    068e146
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.19.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.