You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/11/04 15:44:20 UTC
[httpcomponents-core] branch master updated: HTTPCORE-694: Fixed
decrypted data check by non-blocking SSL i/o sessions (#317)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
The following commit(s) were added to refs/heads/master by this push:
new 1e4bd7b HTTPCORE-694: Fixed decrypted data check by non-blocking SSL i/o sessions (#317)
1e4bd7b is described below
commit 1e4bd7b4640c1250e0f7bdceee5fc9d47e30b4b2
Author: JasonMathison <Ja...@users.noreply.github.com>
AuthorDate: Thu Nov 4 11:44:14 2021 -0400
HTTPCORE-694: Fixed decrypted data check by non-blocking SSL i/o sessions (#317)
---
.../src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java b/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
index 7df71fb..2d8f94c 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
@@ -588,7 +588,7 @@ public class SSLIOSession implements IOSession {
if (sslEngine.isInboundDone()) {
endOfStream = true;
}
- if (inPlainBuf.hasRemaining()) {
+ if(inPlainBuf.position() > 0) {
inPlainBuf.flip();
try {
ensureHandler().inputReady(protocolSession, inPlainBuf.hasRemaining() ? inPlainBuf : null);