mirror of https://github.com/apache/activemq.git
give debug logging insight to the inactivity monitor negotiation, output local and remote infos
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1080560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
286c9d0020
commit
55b9954873
|
@ -327,9 +327,15 @@ public class InactivityMonitor extends TransportFilter {
|
|||
configured = true;
|
||||
} else if (localWireFormatInfo != null && remoteWireFormatInfo != null) {
|
||||
if (!ignoreRemoteWireFormat) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Using min of local: " + localWireFormatInfo + " and remote: " + remoteWireFormatInfo);
|
||||
}
|
||||
readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(), remoteWireFormatInfo.getMaxInactivityDuration());
|
||||
initialDelayTime = Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(), remoteWireFormatInfo.getMaxInactivityDurationInitalDelay());
|
||||
} else {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Using local: " + localWireFormatInfo);
|
||||
}
|
||||
readCheckTime = localWireFormatInfo.getMaxInactivityDuration();
|
||||
initialDelayTime = localWireFormatInfo.getMaxInactivityDurationInitalDelay();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue