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 2020/11/05 21:14:00 UTC

[httpcomponents-core] 01/03: HTTPCORE-653: CancelledKeyException triggers I/O reactor shutdown

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 e67a509e3533d4b993f066ec97b5777f963e7d08
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu Nov 5 21:59:04 2020 +0100

    HTTPCORE-653: CancelledKeyException triggers I/O reactor shutdown
---
 .../src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java b/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
index b691f3d..269c8a7 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
@@ -177,7 +177,7 @@ class SingleCoreIOReactor extends AbstractSingleCoreIOReactor implements Connect
                 try {
                     channel.handleIOEvent(key.readyOps());
                 } catch (final CancelledKeyException ex) {
-                    close(CloseMode.GRACEFUL);
+                    channel.close(CloseMode.GRACEFUL);
                 }
             }
         }