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 — `HttpObjectEncoder` / `DefaultHttp2FrameWriter`: possible buffer leak when a `Throwable` is thrown during header encoding · Issue #17088 · netty/netty

HttpObjectEncoder / DefaultHttp2FrameWriter: possible buffer leak when a Throwable is thrown during header encoding #17088

New issue
Copy link
New issue
Copy link
Closed
#17089
Closed
HttpObjectEncoder / DefaultHttp2FrameWriter: possible buffer leak when a Throwable is thrown during header encoding#17088
#17089
Copy link

Description

@HwangRock
HwangRock
opened on Jul 10, 2026
Issue body actions

Motivation

Same class of bug as the recently-fixed SslHandler leak (#17059): a header buffer is allocated, then a Throwable (typically OutOfMemoryError) is thrown before the buffer is handed off, leaving it unreleased.

This was seen before — #6729 traced a LEAK to HttpObjectEncoder.encodeHeaders back in 2017, but it couldn't be reproduced on demand and was closed with "file a new one when I see this again." The root cause looks still present, and the HTTP/2 frame writer appears to share the same shape.

Expected behaviour

A Throwable thrown after allocation but before ownership transfer should still release the buffer.

Netty version: 4.2 (code is shared with 4.1 / 5.0).

Activity

  1. chrisvest
    added a commit that references this issue on Jul 31, 2026

    `HttpObjectEncoder` / `DefaultHttp2FrameWriter`: fix buffer leak when…

    This issue will close once commit 10e24f9 is merged into the '4.2' branch.
    10e24f9
  2. chrisvest
    closed this as completedin #17089on Jul 31, 2026
  3. normanmaurer
    added a commit that references this issue on Aug 3, 2026

    Auto-port 4.1: `HttpObjectEncoder` / `DefaultHttp2FrameWriter`: fix b…

    This issue will close once commit 25f7e5e is merged into the '4.2' branch.
    25f7e5e
  4. lltopk
    added a commit that references this issue on Oct 24, 2026

    Auto-port 4.1: `HttpObjectEncoder` / `DefaultHttp2FrameWriter`: fix b…

    This issue will close once commit 2becb07 is merged into the '4.2' branch.
    2becb07
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.