From dev-return-87729-archive-asf-public=cust-asf.ponee.io@qpid.apache.org Thu Apr 26 04:48:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D68E3180679 for ; Thu, 26 Apr 2018 04:48:04 +0200 (CEST) Received: (qmail 28482 invoked by uid 500); 26 Apr 2018 02:48:03 -0000 Mailing-List: contact dev-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list dev@qpid.apache.org Received: (qmail 28471 invoked by uid 99); 26 Apr 2018 02:48:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2018 02:48:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F00BFC9670 for ; Thu, 26 Apr 2018 02:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id m7DRI6irtpMH for ; Thu, 26 Apr 2018 02:48:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 937BC5FBA2 for ; Thu, 26 Apr 2018 02:48:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 882BDE1212 for ; Thu, 26 Apr 2018 02:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2F0B1241D8 for ; Thu, 26 Apr 2018 02:48:00 +0000 (UTC) Date: Thu, 26 Apr 2018 02:48:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@qpid.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DISPATCH-960) TCP port randomly assigned when using 'port: amqp' along with 'http: yes' on a listener MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DISPATCH-960?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 453396#comment-16453396 ]=20 ASF GitHub Bot commented on DISPATCH-960: ----------------------------------------- GitHub user fgiorgetti opened a pull request: https://github.com/apache/qpid-dispatch/pull/294 DISPATCH-960 - Resolving service port when using http listener As suggested by @ted-ross, I am re-submitting this PR again now using g= etservbyname_r which is multi-thread safe. =20 If you find any other possible issue, please let me know.=20 You can merge this pull request into a Git repository by running: $ git pull https://github.com/fgiorgetti/qpid-dispatch fgiorgetti-DISPA= TCH-960 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/qpid-dispatch/pull/294.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #294 =20 ---- commit 1fbfb14dee43f00113002d308e1862213edb2f7e Author: Fernando Giorgetti Date: 2018-04-10T19:39:27Z DISPATCH-960 - Resolving service port when using http listener ---- > TCP port randomly assigned when using 'port: amqp' along with 'http: yes'= on a listener > -------------------------------------------------------------------------= -------------- > > Key: DISPATCH-960 > URL: https://issues.apache.org/jira/browse/DISPATCH-960 > Project: Qpid Dispatch > Issue Type: Bug > Affects Versions: 1.0.1 > Reporter: Fernando Giorgetti > Priority: Major > Attachments: dispatch-960-reproducer.tar.gz > > > The default configuration for the dispatch router contains a default list= ener set up to use 'port: amqp'. > If you change the default listener to use 'http: yes' and starts the rout= er, it causes an issue as the service name (amqp) is not resolved, and so t= he router attempts to listen to port 0 (random), causing an unpredictable b= ehavior. > =C2=A0 > A reproducer is attached to this issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org For additional commands, e-mail: dev-help@qpid.apache.org