Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 17136 invoked from network); 19 Mar 2009 16:58:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 16:58:16 -0000 Received: (qmail 74776 invoked by uid 500); 19 Mar 2009 16:58:15 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 74759 invoked by uid 500); 19 Mar 2009 16:58:15 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 74748 invoked by uid 99); 19 Mar 2009 16:58:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 09:58:15 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dmitriy.kargapolov@gmail.com designates 209.85.132.250 as permitted sender) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 16:58:09 +0000 Received: by an-out-0708.google.com with SMTP id c3so373728ana.24 for ; Thu, 19 Mar 2009 09:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=rmwEk4GlR/wo9kEvUaNb5E7z+qtU6K9Lkl/XtMiUUCw=; b=YrorRoVx7vay2zSdAPiIqA6PYRDTsBbzR2zDiut1U036l8w3KlG4OiIddd7gIgCnn4 vVvSwgx7CYH/JPnA/ab1H5fi0gpu10gWNJm8insxczCoLKacwaETpwyiTd7fFKnLM/YL pEWvMWA6UTfEG7pD2n5h4ZTvpyXyZ7vbAvRbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CibAAeXgwWolQOEAeqHKa8JHRxVPVUIRNpsG7dNFCsvOETE6Hnny9sArsLcm8EFY4Q ZrXd5jPReh7MyW6UycrbhkZhrGIOJn6OX4/7wHyUwnDpEMINFTVZlzxnD1YWGFUeG9oS 2Wl8ivrhEyEIxy0Z8gPaxDEghiwrR/pMd1qPI= MIME-Version: 1.0 Received: by 10.100.172.17 with SMTP id u17mr2952480ane.105.1237481868156; Thu, 19 Mar 2009 09:57:48 -0700 (PDT) Date: Thu, 19 Mar 2009 12:57:48 -0400 Message-ID: <63caf42f0903190957k65c016e9n351ce86ede3808ab@mail.gmail.com> Subject: message accept confirmation From: Dmitriy Kargapolov To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=0016368e1c0d2addea04657bb3ab X-Virus-Checked: Checked by ClamAV on apache.org --0016368e1c0d2addea04657bb3ab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I'm playing with C++ Qpid broker M4 and .NET client (Win32). Test scenario looks this way: 1) open connection 2) create a session (timeout = 0 sec) 3) declare a queue (durable, exclusive) 4) subscribe to the queue 5) transfer test message to the exchange 6) wait until message arrives from the queue 7) accept the message 8) close session 9) close connection When I run this test, it works just fine. But the message left in the queue after test completed! Second pass returns 2 messages - new and old one, 3rd pass - 3 messages etc. I was able to "fix" this in various ways: 1) If I add short delay (100ms) between steps 7) and 8), accepted message successfully deleted from the queue. Obviously this way is ugly. 2) If session is created with some expiration timeout, 1st try works fine. But second try got locked due to exclusive subscription of the 1st session which still exists in the broker (until timeout expired). Definitely this is not what I want. What I do not understand - why message didn't get deleted when session closed? I'm sure, accept command reached broker _before_ session ends. Is it bug or normal behavior per AMQP 0-10 spec? Is there any elegant way to make sure accepted message was actually deleted from the queue before leaving session? Thank you. --0016368e1c0d2addea04657bb3ab--