Commit 6be3628d authored by Andre Freyssinet's avatar Andre Freyssinet
Browse files

Resets the connection counter if it reaches the maximum value (#314369).

parent b62cb0e3
......@@ -724,10 +724,16 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent
}
}
// Differs the reply because the connection key counter
// must be saved before the OpenConnectionNot returns.
// Differs the reply because the connection key counter must be saved before
// the OpenConnectionNot returns.
sendTo(getId(), new ReturnConnectionNot(not, ctx));
keyCounter++;
// Resets the counter if it reaches the maximum value. This fix causes JMSMessageID to
// no longer be absolutely unique.
if (keyCounter == Integer.MAX_VALUE)
keyCounter = 0;
else
keyCounter++;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment