diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java b/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java index 7b27b97a18..ca2bf353e5 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java @@ -55,7 +55,7 @@ public class TcpTransport extends TransportThreadSupport implements Transport, S private boolean trace; private boolean useLocalHost = true; private int minmumWireFormatVersion; - private long maxInactivityDuration = 30000; + private long maxInactivityDuration = 0; //30000; private InetSocketAddress socketAddress; /** diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java b/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java index 3fd7380fda..7473a584a9 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java @@ -48,7 +48,7 @@ public class TcpTransportServer extends TransportServerThreadSupport { private int backlog = 5000; private WireFormatFactory wireFormatFactory = new OpenWireFormatFactory(); private TcpTransportFactory transportFactory = new TcpTransportFactory(); - private long maxInactivityDuration = 30000; + private long maxInactivityDuration = 0; //30000; private int minmumWireFormatVersion; private boolean trace;