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 20:55:02 UTC

[httpcomponents-core] branch 4.4.x updated (e7d5751 -> 2ad9417)

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

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


 discard e7d5751  HTTPCORE-695 Unhandled CancelledKeyException during processPendingInterestOps leads to a shutdown of the underlying IOReactor
     new 2ad9417  HTTPCORE-695: Unhandled CancelledKeyException during processPendingInterestOps leads to a shutdown of the underlying IOReactor

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   (e7d5751)
            \
             N -- N -- N   refs/heads/4.4.x (2ad9417)

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/http/impl/nio/reactor/AbstractIOReactor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

[httpcomponents-core] 01/01: HTTPCORE-695: Unhandled CancelledKeyException during processPendingInterestOps leads to a shutdown of the underlying IOReactor

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

commit 2ad9417606978ff81445c7ff84b942d83fc24f6c
Author: Kurtcebe Eroglu <ku...@gmail.com>
AuthorDate: Thu Nov 4 20:25:08 2021 +0100

    HTTPCORE-695: Unhandled CancelledKeyException during processPendingInterestOps leads to a shutdown of the underlying IOReactor
---
 .../java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java b/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
index 10371b7..c97fd4e 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
+++ b/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
@@ -465,7 +465,11 @@ public abstract class AbstractIOReactor implements IOReactor {
             final SelectionKey key = entry.getSelectionKey();
             final int eventMask = entry.getEventMask();
             if (key.isValid()) {
-                key.interestOps(eventMask);
+                try {
+                    key.interestOps(eventMask);
+                } catch (final CancelledKeyException ex) {
+                    // ignore and move on
+                }
             }
         }
     }