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 2022/11/20 11:31:28 UTC

[httpcomponents-core] branch 4.4.x updated: HTTPCORE-730: non-blocking SSL I/O session incorrectly sets read interest when the session is being closed even if the application layer has cleared interest in input causing to a busy loop in the I/O event loop and am excessive CPU utilization

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

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


The following commit(s) were added to refs/heads/4.4.x by this push:
     new 608347c16 HTTPCORE-730: non-blocking SSL I/O session incorrectly sets read interest when the session is being closed even if the application layer has cleared interest in input causing to a busy loop in the I/O event loop and am excessive CPU utilization
608347c16 is described below

commit 608347c1636a06a9515d326285ac26db0c9c9a4a
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Nov 19 18:06:28 2022 +0100

    HTTPCORE-730: non-blocking SSL I/O session incorrectly sets read interest when the session is being closed even if the application layer has cleared interest in input causing to a busy loop in the I/O event loop and am excessive CPU utilization
---
 .../src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java     | 2 --
 1 file changed, 2 deletions(-)

diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java b/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
index f8e6aab34..41fcab804 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
@@ -427,8 +427,6 @@ public class SSLIOSession implements IOSession, SessionBufferStatus, SocketAcces
                 !this.inPlain.hasData() &&
                 (this.appBufferStatus == null || !this.appBufferStatus.hasBufferedInput())) {
             newMask = newMask & ~EventMask.READ;
-        } else if (this.status == CLOSING) {
-            newMask = newMask | EventMask.READ;
         }
 
         // Do we have encrypted data ready to be sent?