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 2025/06/11 16:32:40 UTC

(httpcomponents-core) branch master updated (c0bd90db8 -> 7a50e0d07)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


 discard c0bd90db8 incorporate hard safety net logic
 discard 17eef67ad code style fix
 discard 251990744 renaming and reformating
 discard 22563b079 update unproductive counter limit
 discard 7c2181463 add safety net
     new 7a50e0d07 Safe-guard for infinite unproductive loop in non-blocking SSLIOSession #527

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (c0bd90db8)
            \
             N -- N -- N   refs/heads/master (7a50e0d07)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


(httpcomponents-core) 01/01: Safe-guard for infinite unproductive loop in non-blocking SSLIOSession #527

Posted by ol...@apache.org.
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

commit 7a50e0d07734c0fd0604ebbadeaef58efe079999
Author: Ali Farahani <al...@genesys.com>
AuthorDate: Thu Jun 5 13:05:41 2025 +0100

    Safe-guard for infinite unproductive loop in non-blocking SSLIOSession #527
---
 .../main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

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 528dc0b5a..190fe21cc 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
@@ -626,6 +626,15 @@ private void decryptData(final IOSession protocolSession) throws IOException {
                             }
                             break;
                         }
+                        if (result.bytesConsumed() == 0) {
+                            throw new SSLException(String.format("Unable to decrypt incoming data " +
+                                    "[status = " + result.getStatus() +
+                                    "; handshakeStatus = " + result.getHandshakeStatus() +
+                                    "; bytesConsumed = " + result.bytesConsumed() +
+                                    "; bytesProduced = " + result.bytesProduced() +
+                                    "; end of stream = " + endOfStream +
+                                    "]"));
+                        }
                     } finally {
                         inPlain.release();
                     }