From f195f29d33731386c42f7f8812b86d3175ec682e Mon Sep 17 00:00:00 2001 From: Nandika Date: Wed, 14 May 2025 21:04:13 +0530 Subject: [PATCH] Fix for AXIS2-6092. Removing unnecessary code --- .../org/apache/axis2/transport/http/AxisServlet.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java index 77875126ec..f070788576 100644 --- a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java +++ b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java @@ -593,15 +593,6 @@ public void destroy() { } catch (Exception e) { log.info(e.getMessage()); } - // AXIS2-4898: MultiThreadedHttpConnectionManager starts a thread that is not stopped by the - // shutdown of the connection manager. If we want to avoid a resource leak, we need to call - // shutdownAll here. - try { - Class.forName("org.apache.commons.httpclient.MultiThreadedHttpConnectionManager").getMethod("shutdownAll").invoke(null); - } catch (Exception ex) { - log.error("Failed to shut down MultiThreadedHttpConnectionManager", ex); - } - } private String getHTTPClientVersion() {