Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8D421086D for ; Thu, 29 Aug 2013 14:01:48 +0000 (UTC) Received: (qmail 90022 invoked by uid 500); 29 Aug 2013 14:01:48 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 89891 invoked by uid 500); 29 Aug 2013 14:01:46 -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 89883 invoked by uid 99); 29 Aug 2013 14:01:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 14:01:44 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 14:01:38 +0000 Received: by mail-qa0-f42.google.com with SMTP id cm18so1185776qab.1 for ; Thu, 29 Aug 2013 07:00:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=dfG9WUuiN1Q2xHJJniuJEi1vY0HjBwXyZ3GUdJg4nDY=; b=I1Bw/B1mSQIxVqkHqIW7m+QmDegjloOIjf+dqj9beZjQpXhDERwi9zgXB21RO6MdBe 0BFrEbp4uYHFOfhdxHd4LHprymHH9kUgcBNa40M6xv1Dji7fRV9Ugg60APsIoKyMTOPS +btFNeZmh/UXBTHNgqfv/03Y47KV4uyYpU/iq36vsClUFNHG329Q1KXb6nVvjIwjeHnS 6kcFs9CmElPoUZ2vOWqI1/gSs5CutQgC0QS7ZXzojVtucG8++3JFjTaGk0xp1ZvMkOos Ss6bun2x5w/R5CcULP5QE/0UILyumNBGKC3Qc4WlpVxQavhHWX/HJ5bahVXsDq4ST7Bm UTMA== X-Gm-Message-State: ALoCoQkZEEDDzIWymjLfNaG9uGb5Xho+KgzrGIG4lMNkG89wHbS/uc6W61IDtp4WR8X/GInpId4X MIME-Version: 1.0 X-Received: by 10.49.63.39 with SMTP id d7mr3919762qes.78.1377784837979; Thu, 29 Aug 2013 07:00:37 -0700 (PDT) Received: by 10.49.41.243 with HTTP; Thu, 29 Aug 2013 07:00:37 -0700 (PDT) X-Originating-IP: [193.29.76.37] In-Reply-To: <521E17A4.7050900@redhat.com> References: <521E17A4.7050900@redhat.com> Date: Thu, 29 Aug 2013 16:00:37 +0200 Message-ID: Subject: Re: [c++] give application more direct control over reconnect & replay From: Jakub Scholz To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=047d7ba975ccd855e104e5168744 X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba975ccd855e104e5168744 Content-Type: text/plain; charset=ISO-8859-1 Hi Gordon, That definitely looks like a very nice feature. There are many situations when you want to trigger the reconnect manually and not leave it fully on the client library. Right now, it seems that the reconnect(...) method always requires the URL of the broker to reconnect to. Maybe it would be useful to also add a reconnect() method without the URL parameter, to trigger the reconnect based on the URL which was specified when creating the connection. Thanks & Regards Jakub On Wed, Aug 28, 2013 at 5:30 PM, Gordon Sim wrote: > I have a proposal[1] for a small addition to the qpid::messaging API that > makes the reconnect feature less of an 'all or nothing' affair[2]. For > background context, this limitation was brought up most recently on the dev > list back in June[3]. > > Basically it exposes a new reconnect() method allowing the application to > catch the TransportFailure and decide if and when and where to reconnect. > Invoking that method then re-establishes all the sessions/senders/receivers > and replays indoubt messages. > > Any feedback welcome as usual, either here or on reviewboard. > > --Gordon. > > [1] https://reviews.apache.org/r/**13885/ > [2] https://issues.apache.org/**jira/browse/QPID-4932 > [3] http://qpid.2158936.n2.nabble.**com/Qpid-post-mortem-and-** > request-for-suggestions-for-**my-next-release-challenge-10M-** > msgs-sec-on-Windows-**tp7594096p7594258.html > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.**org > For additional commands, e-mail: users-help@qpid.apache.org > > --047d7ba975ccd855e104e5168744--