activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject git commit: speed up stopping the tcp transport (saves 2sec for each @Test method)
Date Tue, 04 Mar 2014 23:10:41 GMT
Repository: activemq
Updated Branches:
  refs/heads/trunk be94865c4 -> efcef4533


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/efcef453
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/efcef453
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/efcef453

Branch: refs/heads/trunk
Commit: efcef4533e31191f097791e9a99d15a35573c453
Parents: be94865
Author: Hadrian Zbarcea <hadrian@apache.org>
Authored: Tue Mar 4 18:10:08 2014 -0500
Committer: Hadrian Zbarcea <hadrian@apache.org>
Committed: Tue Mar 4 18:10:08 2014 -0500

----------------------------------------------------------------------
 .../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/efcef453/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