activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gaohoward <>
Subject [GitHub] activemq-artemis pull request #740: ARTEMIS-706 No Keep Alives from Broker
Date Fri, 02 Sep 2016 01:58:29 GMT
Github user gaohoward commented on a diff in the pull request:
    --- Diff: artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/
    @@ -742,6 +756,25 @@ public void addConsumer(ConsumerInfo info) throws Exception {
    +   public void setConnectionEntry(ConnectionEntry connectionEntry) {
    +      this.connectionEntry = connectionEntry;
    +   }
    +   public void setUpTtl(final long inactivityDuration, final long inactivityDurationInitialDelay,
final boolean useKeepAlive) {
    +      this.useKeepAlive = useKeepAlive;
    +      this.maxInactivityDuration = inactivityDuration;
    +      protocolManager.getScheduledPool().schedule(new Runnable() {
    --- End diff --
    With Openwire client there is only one maxInactivityDuration, so the client->server
and server->client should be the same (if the server and client are different values, the
smaller is taken). So in case of 1 seconds the server will send a ping at leas for every half
of the seconds in order to avoid client timing out the connection. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message