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/3 QPACK resumption callbacks can run outside the handler executor · Issue #17234 · netty/netty

HTTP/3 QPACK resumption callbacks can run outside the handler executor #17234

New issue
Copy link
New issue
Copy link
Closed
#17232
Closed
HTTP/3 QPACK resumption callbacks can run outside the handler executor#17234
#17232
Copy link

Description

@arnabnandy7
arnabnandy7
opened on Aug 7, 2026
Issue body actions

Expected behavior

When Http3FrameCodec is installed with an EventExecutorGroup, QPACK read resumption and buffered-write draining should execute on ChannelHandlerContext.executor() before accessing codec state, the pipeline, or the pending-write queue.

Actual behavior

The listeners registered with QpackAttributes.whenDecoderStreamAvailable(...) and whenEncoderStreamAvailable(...) execute their resume/drain logic directly on the thread that completes the corresponding future.

If that future is completed outside the executor assigned to Http3FrameCodec, codec state and pipeline operations are accessed from the wrong executor. A deterministic test records that read resumption is not running in ctx.executor().

I have not tied this to the unrelated DBeaver/native-QUIC problem reported in #17041. This report is specifically about handler-executor affinity in the HTTP/3 QPACK resumption callbacks.

Steps to reproduce

  1. Create a DefaultEventExecutorGroup(1).
  2. Install Http3FrameCodec using pipeline.addLast(executorGroup, codec).
  3. Delay creation of the QPACK decoder stream so that ReadResumptionListener registers with whenDecoderStreamAvailable(...).
  4. Complete the decoder-stream future outside the handler executor.
  5. Observe the executor from which the codec receives the empty-buffer read used to resume decoding.

The assertion below fails with the current direct-callback behavior:

assertTrue(resumedOnHandlerExecutor.get());

Scheduling through the context executor makes the same test pass:

if (ctx.executor().inEventLoop()) {
    resume();
} else {
    ctx.executor().execute(this);
}

The equivalent executor handoff is also needed before draining buffered writes.

Minimal yet complete reproducer code (or URL to code)

A deterministic regression test and proposed fix are available in PR #17232. The test is named Http3FrameCodecTest.testReadResumptionUsesHandlerExecutor in the updated local branch and will be pushed to the PR.

The essential setup is:

EventExecutorGroup executor = new DefaultEventExecutorGroup(1);
AtomicBoolean resumedOnHandlerExecutor = new AtomicBoolean();

// Install a spy of Http3FrameCodec using pipeline.addLast(executor, codec).
// When channelRead(ctx, Unpooled.EMPTY_BUFFER) is called, record:
resumedOnHandlerExecutor.set(executor.next().inEventLoop());

// Ensure handlerAdded has run, then complete the decoder-stream future
// from the test thread and assert the recorded value is true.

Netty version

4.2.18.Final-SNAPSHOT.

JVM version (e.g. java -version)

Eclipse Temurin OpenJDK 21.0.11+10.

OS version (e.g. uname -a)

Microsoft Windows NT 10.0.26300.0.

netty-http3-qpack-executor-reproducer.zip

Activity

  1. normanmaurer
    added a commit that references this issue on Aug 10, 2026

    http3: marshal QPACK resume/drain to stream event loop (fixes #17234) (…

    This issue will close once commit 5b99c26 is merged into the '4.2' branch.
    5b99c26
  2. normanmaurer
    closed this as completedin #17232on Aug 10, 2026
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

      No milestone

      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.