From 2595eb3504096ab833817a558f3d75805c957fd0 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Thu, 22 Jan 2026 17:36:45 +0100 Subject: [PATCH] Bug fix: Corrected exception propagation in protocol negotiators exception handling code --- .../org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java index 3a5912b47b..c967699dc7 100644 --- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java +++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java @@ -96,9 +96,6 @@ public void exception(final IOSession session, final Exception cause) { protocolHandler.exception(session, cause); } else { CommandSupport.failCommands(session, cause); - if (exceptionCallback != null) { - exceptionCallback.execute(cause); - } } } catch (final Exception ex) { if (completed.compareAndSet(false, true) && resultCallback != null) {