Skip to content

Conversation

wbpcode
Copy link
Member

@wbpcode wbpcode commented Sep 27, 2025

Commit Message: http2: fix a bug where memory will leak if stream is reset before send headers
Additional Description:

To close #40253.

Risk Level: mid. core http2 code change.
Testing: unit.
Docs Changes: n/a.
Release Notes: added.

Signed-off-by: WangBaiping <[email protected]>
Signed-off-by: WangBaiping <[email protected]>
@wbpcode
Copy link
Member Author

wbpcode commented Sep 27, 2025

Although the code is very simple, I think this deserves a careful review of senior maintainers because this change the lifetime of the stream to avoid memory leak.

Signed-off-by: WangBaiping <[email protected]>
@wbpcode
Copy link
Member Author

wbpcode commented Sep 29, 2025

/retest

@ggreenway ggreenway removed their assignment Sep 29, 2025
@ggreenway
Copy link
Member

I don't know enough about the http codecs to effectively review this; removing myself.

@yanavlasov
Copy link
Contributor

The change looks good to me. However @wbpcode can you add an integration test with the upstream filter from #40253 please?

/wait-any

@wbpcode
Copy link
Member Author

wbpcode commented Sep 30, 2025

I will be OOM for this week. Will try to add the test once I back :)

@yanavlasov
Copy link
Contributor

/wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to send a local reply from a custom upstream filter without leaking memory?
3 participants