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 — Merge commit from fork · netty/netty@3d45a1e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-http2/src/main/java/io/netty/handler/codec/http2
    • DelegatingDecompressorFrameListener.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java‎

Copy file name to clipboardExpand all lines: codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java
+16-13Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -387,19 +387,22 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
387387
return;
388388
}
389389

390-
// Also take padding into account.
391-
incrementDecompressedBytes(padding);
392-
393-
incrementDecompressedBytes(buf.readableBytes());
394-
// Immediately return the bytes back to the flow controller. ConsumedBytesConverter will convert
395-
// from the decompressed amount which the user knows about to the compressed amount which flow
396-
// control knows about.
397-
connection.local().flowController().consumeBytes(stream,
398-
listener.onDataRead(targetCtx, stream.id(), buf, padding, false));
399-
padding = 0; // Padding is only communicated once on the first iteration.
400-
buf.release();
401-
402-
dataDecompressed = true;
390+
try {
391+
// Also take padding into account.
392+
incrementDecompressedBytes(padding);
393+
394+
incrementDecompressedBytes(buf.readableBytes());
395+
// Immediately return the bytes back to the flow controller. ConsumedBytesConverter will convert
396+
// from the decompressed amount which the user knows about to the compressed amount which flow
397+
// control knows about.
398+
connection.local().flowController().consumeBytes(stream,
399+
listener.onDataRead(targetCtx, stream.id(), buf, padding, false));
400+
padding = 0; // Padding is only communicated once on the first iteration.
401+
402+
dataDecompressed = true;
403+
} finally {
404+
buf.release();
405+
}
403406
}
404407

405408
@Override

0 commit comments

Comments
0 (0)
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.