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 — Only break out of wrapMultiple(...) when the engine neither consumed … · netty/netty@c98aca9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • handler/src/main/java/io/netty/handler/ssl
    • SslHandler.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎handler/src/main/java/io/netty/handler/ssl/SslHandler.java‎

Copy file name to clipboardExpand all lines: handler/src/main/java/io/netty/handler/ssl/SslHandler.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,9 +1106,9 @@ private SSLEngineResult wrapMultiple(ByteBufAllocator alloc, SSLEngine engine, B
11061106
in.readerIndex(in.readerIndex() - wrapBuf.readableBytes());
11071107
}
11081108

1109-
if (result.bytesConsumed() == 0) {
1110-
// The engine did not consume anything, for example because the handshake is not done yet.
1111-
// Break out so the caller handles the handshake status, as otherwise we would loop forever.
1109+
if (result.bytesConsumed() == 0 && result.bytesProduced() == 0) {
1110+
// The engine did neither consume nor produce anything, for example because the handshake is not done
1111+
// yet. Break out so the caller handles the handshake status, as otherwise we would loop forever.
11121112
break;
11131113
}
11141114
} while (in.readableBytes() > 0);

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.