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:53:46 UTC
[httpcomponents-core] branch 5.1.x 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 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
The following commit(s) were added to refs/heads/5.1.x by this push:
new d78555c HTTPCORE-694: Fixed decrypted data check by non-blocking SSL i/o sessions (#317)
d78555c is described below
commit d78555caabc855f62da2504d70869218754dc5b3
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 cf6b941..5776a6e 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
@@ -544,7 +544,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);