From bdb19f3b4114360b9d4b89d6647e8a5c8f73facf Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 27 Jul 2010 20:27:56 +0000 Subject: [PATCH] Fix unit test failure with APR connector. Make sure MBeans are de-registered when connector stops. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@979853 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/http11/Http11AprProtocol.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/org/apache/coyote/http11/Http11AprProtocol.java b/java/org/apache/coyote/http11/Http11AprProtocol.java index ae94a0e79..5b782e5df 100644 --- a/java/org/apache/coyote/http11/Http11AprProtocol.java +++ b/java/org/apache/coyote/http11/Http11AprProtocol.java @@ -169,6 +169,7 @@ public class Http11AprProtocol implements ProtocolHandler, MBeanRegistration { if(log.isInfoEnabled()) log.info(sm.getString("http11protocol.stop", getName())); endpoint.destroy(); + cHandler.recycledProcessors.clear(); if( tpOname!=null ) Registry.getRegistry(null, null).unregisterComponent(tpOname); if( rgOname != null ) -- 2.11.0