Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F0C8200B71 for ; Wed, 31 Aug 2016 15:47:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6E244160ABA; Wed, 31 Aug 2016 13:47:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B4464160A8C for ; Wed, 31 Aug 2016 15:47:22 +0200 (CEST) Received: (qmail 36754 invoked by uid 500); 31 Aug 2016 13:47:21 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 36722 invoked by uid 99); 31 Aug 2016 13:47:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 13:47:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 486142C014C for ; Wed, 31 Aug 2016 13:47:21 +0000 (UTC) Date: Wed, 31 Aug 2016 13:47:21 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARTEMIS-706) InactivityIOException - Perhaps No Keep Alives From Broker? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 Aug 2016 13:47:24 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15452283#comment-15452283 ] ASF GitHub Bot commented on ARTEMIS-706: ---------------------------------------- Github user clebertsuconic commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/740#discussion_r76989578 --- Diff: artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java --- @@ -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 -- I see three things wrong here: I - you are recreating the TTL mechanism already existing on AbstractRemotingConnection. There's already a checker there for received pings from the client. Most of the issues I had on the heavy refactoring we did on artemis openwire layer was around duplicated code. Having to figure out what was abstract and what needed to be at the openwire level. II - It seems you 'are not sending the packet to the client through the Scheduler. III - It seems this is leaking a future. I don't see you ever cancelling the future upon disconnect. this will leak a connection through the scheduled executor. You must hold a Future from the call you made on schedule. And cancel after the openWireConnection is closed. > InactivityIOException - Perhaps No Keep Alives From Broker? > ----------------------------------------------------------- > > Key: ARTEMIS-706 > URL: https://issues.apache.org/jira/browse/ARTEMIS-706 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: OpenWire > Affects Versions: 1.4.0 > Reporter: Howard Gao > Assignee: Howard Gao > Fix For: 1.5.0 > > > Broker doesn't handle the openwire Inactivity timeouts properly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)