mirror of https://github.com/apache/activemq.git
fix https://issues.apache.org/jira/browse/AMQ-4674 don't apply grace twice.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1515908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40aa15ce52
commit
53ec6655b0
|
@ -926,7 +926,7 @@ public class ProtocolConverter {
|
|||
} else {
|
||||
|
||||
try {
|
||||
hbReadInterval = (long) (Long.parseLong(keepAliveOpts[0]) * hbGracePeriodMultiplier);
|
||||
hbReadInterval = (Long.parseLong(keepAliveOpts[0]));
|
||||
hbWriteInterval = Long.parseLong(keepAliveOpts[1]);
|
||||
} catch(NumberFormatException e) {
|
||||
throw new ProtocolException("Invalid heart-beat header:" + heartBeatConfig, true);
|
||||
|
|
Loading…
Reference in New Issue