From dev-return-84960-archive-asf-public=cust-asf.ponee.io@qpid.apache.org Tue Jan 23 22:31:04 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 EAB0C180621 for ; Tue, 23 Jan 2018 22:31:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DA430160C3A; Tue, 23 Jan 2018 21:31:04 +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 2B299160C24 for ; Tue, 23 Jan 2018 22:31:04 +0100 (CET) Received: (qmail 46263 invoked by uid 500); 23 Jan 2018 21:31: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 46252 invoked by uid 99); 23 Jan 2018 21:31:03 -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; Tue, 23 Jan 2018 21:31:03 +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 D93C41A0B8F for ; Tue, 23 Jan 2018 21:31:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.911 X-Spam-Level: X-Spam-Status: No, score=-99.911 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] 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 qT3CoI-Jcekd for ; Tue, 23 Jan 2018 21:31:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 012265F1F3 for ; Tue, 23 Jan 2018 21:31:02 +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 5536DE041F for ; Tue, 23 Jan 2018 21:31: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 0EB0025C61 for ; Tue, 23 Jan 2018 21:31:00 +0000 (UTC) Date: Tue, 23 Jan 2018 21:31:00 +0000 (UTC) From: "Andrew Stitcher (JIRA)" To: dev@qpid.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PROTON-1174) Proton C encodes Open.channel-max 0 as a null and not as a uint. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PROTON-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336401#comment-16336401 ] Andrew Stitcher commented on PROTON-1174: ----------------------------------------- [~chug] can you confirm what AMQP lib the receiving app is using here: As far as I can tell proton-c has a matching bug on receiving an OPEN frame. In other words it will interpret no channel_max as meaning 0 upon receipt as well as sending. > Proton C encodes Open.channel-max 0 as a null and not as a uint. > ---------------------------------------------------------------- > > Key: PROTON-1174 > URL: https://issues.apache.org/jira/browse/PROTON-1174 > Project: Qpid Proton > Issue Type: Bug > Components: proton-c > Affects Versions: 0.12.0 > Reporter: Chuck Rolke > Assignee: Andrew Stitcher > Priority: Major > Labels: codec > Fix For: proton-c-0.20.0 > > > A connection Open frame is created with the intent of limiting the peer to exactly one link. > {noformat} > pn_transport_set_channel_max(pn_trans, 0); > {noformat} > Proton encodes the frame with a null 0x40 going over the wire in the channel-max slot. > A receiving application treats the value as 'default' and uses the spec default value of 65535. If the receiving application had received a 0x43 (types:encoding uint:uint0) it would have used the intended channel max of 0. -- 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