Skip to content

Commit

Permalink
Back-port fix from undertow-io#1453 to Undertow v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aldiyen committed Mar 29, 2024
1 parent 483953c commit bcb0262
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ private long doWrap(ByteBuffer[] userBuffers, int off, int len) throws IOExcepti

private SSLEngineResult wrapAndFlip(ByteBuffer[] userBuffers, int off, int len) throws IOException {
SSLEngineResult result = null;
while (result == null || (result.getHandshakeStatus() == SSLEngineResult.HandshakeStatus.NEED_WRAP && result.getStatus() != SSLEngineResult.Status.BUFFER_OVERFLOW)) {
while (result == null || (result.getHandshakeStatus() == SSLEngineResult.HandshakeStatus.NEED_WRAP && result.getStatus() != SSLEngineResult.Status.BUFFER_OVERFLOW && !engine.isInboundDone())) {
if (userBuffers == null) {
result = engine.wrap(EMPTY_BUFFER, wrappedData.getBuffer());
} else {
Expand Down

0 comments on commit bcb0262

Please # to comment.