Commit f53f03a
Fix Netty buffer leak in Http2ResponseHeaderCleanerHandler
The issue was in the else block of channelRead() method. Using ctx.fireChannelRead(msg)
directly bypasses the parent class's reference counting logic. Changed to use
super.channelRead(ctx, msg) to ensure proper buffer lifecycle management.
This ensures that when messages other than Http2HeadersFrame, Http2SettingsAckFrame,
or Http2SettingsFrame are received, they are properly handled with correct reference
counting, preventing ByteBuf leaks in HTTP/2 communication.
Co-authored-by: FabianMeiswinkel <[email protected]>1 parent 763266e commit f53f03a
File tree
1 file changed
+2
-1
lines changed- sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/http
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
0 commit comments