activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject [10/19] git commit: speed up stopping the tcp transport (saves 2sec for each @Test method)
Date Thu, 20 Mar 2014 20:15:40 GMT
speed up stopping the tcp transport (saves 2sec for each @Test method)


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/d628c716
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/d628c716
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/d628c716

Branch: refs/heads/activemq-5.9
Commit: d628c716a7f0f8e47e91956c1b8a1fd10fce6be0
Parents: 12c9bde
Author: Hadrian Zbarcea <hadrian@apache.org>
Authored: Tue Mar 4 18:10:08 2014 -0500
Committer: Hadrian Zbarcea <hadrian@apache.org>
Committed: Thu Mar 20 15:15:17 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/activemq/transport/tcp/TcpTransportServer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/d628c716/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
----------------------------------------------------------------------
diff --git a/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
b/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
index 6eab645..65f089b 100755
--- a/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
+++ b/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java
@@ -405,10 +405,10 @@ public class TcpTransportServer extends TransportServerThreadSupport
implements
 
     @Override
     protected void doStop(ServiceStopper stopper) throws Exception {
-        super.doStop(stopper);
         if (serverSocket != null) {
             serverSocket.close();
         }
+        super.doStop(stopper);
     }
 
     @Override


Mime
View raw message