Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 69597 invoked from network); 9 Apr 2010 14:57:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Apr 2010 14:57:32 -0000 Received: (qmail 663 invoked by uid 500); 9 Apr 2010 14:57:32 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 601 invoked by uid 500); 9 Apr 2010 14:57:32 -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 593 invoked by uid 99); 9 Apr 2010 14:57:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Apr 2010 14:57:32 +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; Fri, 09 Apr 2010 14:57:29 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE366234C48D for ; Fri, 9 Apr 2010 14:57:08 +0000 (UTC) Message-ID: <842586403.15511270825028843.JavaMail.jira@brutus.apache.org> Date: Fri, 9 Apr 2010 14:57:08 +0000 (UTC) From: "Mark Gellings (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-247) Bug in FutureResponse on how handles timeout In-Reply-To: <444683347.15451270824188597.JavaMail.jira@brutus.apache.org> 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/AMQNET-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58731#action_58731 ] Mark Gellings commented on AMQNET-247: -------------------------------------- I also believe the catch block should rethrow the exception as follows: try { if(!latch.await(maxWait)) { // TODO: Throw timeout exception? } } catch (Exception e) { Tracer.Error("Caught while waiting on monitor: " + e); throw; } > Bug in FutureResponse on how handles timeout > -------------------------------------------- > > Key: AMQNET-247 > URL: https://issues.apache.org/activemq/browse/AMQNET-247 > Project: ActiveMQ .Net > Issue Type: Bug > Components: NMS > Affects Versions: 1.2.0 > Reporter: Mark Gellings > Assignee: Jim Gomes > > In FutureReponse.cs, in the Response getter if !latch.awaite(maxWait) times out a timeout exception should be thrown. Currently there is just a TODO comment. > This is a bug because when it is not thrown the producer thinks the message was sent successfully when actually it wasn't. This could be problematic to any system if a message really isn't sent. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.