This closes #2006
This commit is contained in:
commit
8d4bf953fb
|
@ -1295,7 +1295,7 @@ public class OpenWireConnection extends AbstractRemotingConnection implements Se
|
|||
outWireFormat.renegotiateWireFormat(command);
|
||||
//throw back a brokerInfo here
|
||||
protocolManager.sendBrokerInfo(OpenWireConnection.this);
|
||||
protocolManager.setUpInactivityParams(OpenWireConnection.this, command);
|
||||
protocolManager.configureInactivityParams(OpenWireConnection.this, command);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -488,7 +488,7 @@ public class OpenWireProtocolManager implements ProtocolManager<Interceptor>, Cl
|
|||
connection.dispatch(brokerInfo);
|
||||
}
|
||||
|
||||
public void setUpInactivityParams(OpenWireConnection connection, WireFormatInfo command) throws IOException {
|
||||
public void configureInactivityParams(OpenWireConnection connection, WireFormatInfo command) throws IOException {
|
||||
long inactivityDurationToUse = command.getMaxInactivityDuration() > this.maxInactivityDuration ? this.maxInactivityDuration : command.getMaxInactivityDuration();
|
||||
long inactivityDurationInitialDelayToUse = command.getMaxInactivityDurationInitalDelay() > this.maxInactivityDurationInitalDelay ? this.maxInactivityDurationInitalDelay : command.getMaxInactivityDurationInitalDelay();
|
||||
boolean useKeepAliveToUse = this.maxInactivityDuration == 0L ? false : this.useKeepAlive;
|
||||
|
|
Loading…
Reference in New Issue