From 96e7ce2f6f08698d6c1043bbfb85d8eae5a6cbb6 Mon Sep 17 00:00:00 2001 From: Arunan Sugunakumar Date: Tue, 5 Sep 2023 16:48:40 +0530 Subject: [PATCH] Properly destroy passthru worker pools during Listener destroy stage --- .../synapse/transport/passthru/PassThroughHttpListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java index 956c0557f9..1d4ddf2a6a 100644 --- a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java +++ b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java @@ -445,7 +445,6 @@ public void stop() throws AxisFault { } } serviceTracker.stop(); - handler.stop(); } catch (IOException e) { handleException("Error shutting down " + namePrefix + " listening IO reactor", e); } catch (InterruptedException e) { @@ -461,6 +460,7 @@ public void destroy() { getAxisConfiguration().getObserversList().remove(axisObserver);*/ // serviceTracker.stop(); sourceConfiguration.getMetrics().destroy(); + handler.stop(); } /**