Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 54781 invoked from network); 25 Nov 2009 17:20:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 17:20:17 -0000 Received: (qmail 30156 invoked by uid 500); 25 Nov 2009 17:20:17 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 30091 invoked by uid 500); 25 Nov 2009 17:20:16 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 30077 invoked by uid 99); 25 Nov 2009 17:20:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 17:20:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 17:20:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EE361234C1EF for ; Wed, 25 Nov 2009 09:19:52 -0800 (PST) Message-ID: <2109276083.1259169592973.JavaMail.jira@brutus> Date: Wed, 25 Nov 2009 09:19:52 -0800 (PST) From: "Hiram Chirino (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2088) Change the InactivityMonitor to clear its flag as soon as a few bytes are received on a connection rather than only after an entire message has been assembled. In-Reply-To: <136868851.1233155819783.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56111#action_56111 ] Hiram Chirino commented on AMQ-2088: ------------------------------------ I think a better approach would be for the wireformat to expose a counter which is incremented as data is read. That way between inactivity check intervals the inactivity monitor can check to see if that value has changed since it's last check. > Change the InactivityMonitor to clear its flag as soon as a few bytes are received on a connection rather than only after an entire message has been assembled. > --------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-2088 > URL: https://issues.apache.org/activemq/browse/AMQ-2088 > Project: ActiveMQ > Issue Type: Improvement > Components: Transport > Affects Versions: 5.1.0 > Reporter: Torsten Mielke > Assignee: Dejan Bosanac > Priority: Critical > Fix For: 5.3.0 > > > On slow connections with larger messages to be exchanged, the inactivity monitor might kick in, drop the network connection and re-establish it again. This prevents two brokers from exchanging larger messages on a slow connection as the transmission always gets interrupted. > See the discussion of this on http://activemq.apache.org/slow-networks-drop-large-messages.html. > The problem is that the InactivityMonitor always waits for a complete message to be assembled on an active connection before clearing its internal flag. > I propose to change the behavior of the InactivityMonitor so that it clears its flag already when a few bytes were received on a network connection rather than waiting for the entire message to be sent. This should work around the problem of connections being dropped and re-established periodically when receiving large messages. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.