activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1432963 - /activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
Date Mon, 14 Jan 2013 15:57:06 GMT
Author: tabish
Date: Mon Jan 14 15:57:05 2013
New Revision: 1432963

URL: http://svn.apache.org/viewvc?rev=1432963&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4248

Don't swallow the exception.

Modified:
    activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java

Modified: activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java?rev=1432963&r1=1432962&r2=1432963&view=diff
==============================================================================
--- activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
(original)
+++ activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
Mon Jan 14 15:57:05 2013
@@ -896,7 +896,7 @@ public class TransportConnection impleme
                 }
                 dispatch(command);
             }
-        } catch (Throwable e) {
+        } catch (IOException e) {
             if (messageDispatch != null) {
                 TransmitCallback sub = messageDispatch.getTransmitCallback();
                 broker.postProcessDispatch(messageDispatch);
@@ -904,6 +904,7 @@ public class TransportConnection impleme
                     sub.onFailure();
                 }
                 messageDispatch = null;
+                throw e;
             }
         } finally {
             if (messageDispatch != null) {



Mime
View raw message