From users-return-18115-archive-asf-public=cust-asf.ponee.io@qpid.apache.org Wed Jan 10 20:00:19 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 6AD1618072F for ; Wed, 10 Jan 2018 20:00:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5AAEA160C2E; Wed, 10 Jan 2018 19:00:19 +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 A02B4160C1E for ; Wed, 10 Jan 2018 20:00:18 +0100 (CET) Received: (qmail 21674 invoked by uid 500); 10 Jan 2018 19:00:17 -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 21662 invoked by uid 99); 10 Jan 2018 19:00:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2018 19:00:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D5BC61A0575 for ; Wed, 10 Jan 2018 19:00:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.735 X-Spam-Level: *** X-Spam-Status: No, score=3.735 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Wygh-OSOm-MB for ; Wed, 10 Jan 2018 19:00:16 +0000 (UTC) Received: from n2.nabble.com (n2.nabble.com [162.253.133.85]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B41A35F1B9 for ; Wed, 10 Jan 2018 19:00:15 +0000 (UTC) Received: from static.162.253.133.85.macminivault.com (localhost [127.0.0.1]) by n2.nabble.com (Postfix) with ESMTP id 38A152E3B86C for ; Wed, 10 Jan 2018 12:00:15 -0700 (MST) Date: Wed, 10 Jan 2018 12:00:15 -0700 (MST) From: Mani To: users@qpid.apache.org Message-ID: <1515610815228-0.post@n2.nabble.com> Subject: Number of consumers incrementing after every reconnect MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I only have one consumer connected to ActiveMQ. With everytime I lose connection and reconnect, the "number of consumers" increments by 1 (i.e. +1) instead of just being one (i.e. Number of Consumers: 1). Does it have anything to do with idle_timeout? Please have a look at the code below. I even tried appending "wireFormat.maxInactivityDuration=30000" to the failover url but this did not help. Any help in debugging this further or guidance would be greatly appreciated! Thanks! class class1 : public proton::messaging_handler { std::string url; std::string devQueue; std::vector failovers = {"failover:(amqps://1.2.3.4)"}; public: class1(const std::string& u, const std::string& devQueue) : url(u), devQueue(devQueue) {} void on_container_start(proton::container& c) override { proton::connection_options co; proton::reconnect_options ro; ro.failover_urls(failovers); c.connect(url, co.idle_timeout(proton::duration::SECOND).reconnect(ro)); } void on_connection_open(proton::connection& c) override { c.open_receiver(devQueue); } ... }; -- Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org