activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r367409 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
Date Mon, 09 Jan 2006 21:55:55 GMT
Author: chirino
Date: Mon Jan  9 13:55:53 2006
New Revision: 367409

URL: http://svn.apache.org/viewcvs?rev=367409&view=rev
Log:
don't close the connection on a async error since we are not sure that it was connection failure.
 It may just have been a failed operation (security constrain or something).

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java?rev=367409&r1=367408&r2=367409&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/AbstractConnection.java
Mon Jan  9 13:55:53 2006
@@ -83,8 +83,6 @@
     
     private WireFormatInfo wireFormatInfo;    
     protected boolean disposed=false;
-    protected boolean shuttingDown=false;
-
     
     static class ConnectionState extends org.apache.activemq.state.ConnectionState {
         private final ConnectionContext context;
@@ -150,8 +148,6 @@
             } catch (Throwable ignore) {
             }
         }
-        
-        shuttingDown=false;
     }
     
     public void serviceTransportException(IOException e) {
@@ -165,17 +161,12 @@
     }
         
     public void serviceException(Throwable e) {
-        if( !disposed && !shuttingDown ) {
-            shuttingDown=true;
+        if( !disposed ) {
             if( log.isDebugEnabled() )
                 log.debug("Async error occurred: "+e,e);
             ConnectionError ce = new ConnectionError();
             ce.setException(e);
             dispatchAsync(ce);
-            try {
-                stop();
-            } catch (Exception ignore) {
-            }
         } 
     }
 
@@ -245,7 +236,6 @@
     }
     
     public Response processShutdown(ShutdownInfo info) throws Throwable {
-        shuttingDown=true;
         stop();
         return null;
     }



Mime
View raw message