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 CB33310DB9 for ; Tue, 4 Feb 2014 20:36:00 +0000 (UTC) Received: (qmail 15312 invoked by uid 500); 4 Feb 2014 20:35:59 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 15283 invoked by uid 500); 4 Feb 2014 20:35:58 -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 15274 invoked by uid 99); 4 Feb 2014 20:35:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 20:35:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fraser.adams@blueyonder.co.uk designates 80.0.253.66 as permitted sender) Received: from [80.0.253.66] (HELO know-smtprelay-omc-2.server.virginmedia.net) (80.0.253.66) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 20:35:52 +0000 Received: from [192.168.1.104] ([82.38.120.72]) by know-smtprelay-2-imp with bizsmtp id NLbW1n00e1Zorai01LbWoD; Tue, 04 Feb 2014 20:35:30 +0000 X-Originating-IP: [82.38.120.72] X-Spam: 0 X-Authority: v=2.1 cv=L4GTQoj8 c=1 sm=1 tr=0 a=kn84lg4yEBBc+Mp7+mj2YQ==:117 a=kn84lg4yEBBc+Mp7+mj2YQ==:17 a=thNyya010k0A:10 a=NrtcOvwhfvYA:10 a=3NElcqgl2aoA:10 a=8nJEP1OIZ-IA:10 a=a5Gf7U6LAAAA:8 a=uXnP-nzDSBAA:10 a=vkeIBjdglGVSrgaVYZIA:9 a=wPNLvfGTeEIA:10 Message-ID: <52F14F11.5000602@blueyonder.co.uk> Date: Tue, 04 Feb 2014 20:35:29 +0000 From: Fraser Adams User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: A write up of some AMQP 1.0 Experiments References: <52EEB7A8.3040707@blueyonder.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 03/02/14 23:31, Robbie Gemmell wrote: > More of an observation/question for all, than reply to youFraser.... I > noted the following while I was skimming: > > > " These sends resulted in the following messages from drain: > > 1. From Proton Messenger send: > Message(properties={x-amqp-absolute-expiry-time:0, x-amqp-creation-time:0, > x-amqp-group-sequence:0, x-amqp-to:amqp://localhost/amq.fanout}, > content='Hello World!') > > 2. From JavaScript Proton send: > Message(properties={x-amqp-absolute-expiry-time:0, x-amqp-creation-time:0, > x-amqp-group-sequence:0, x-amqp-to:amqp://localhost:5673/amq.fanout}, > content='Hello World!') > > 3. From qpid::messaging spout: > Message(properties={spout-id:cf6c9ee4-93e8-42cf-af6b-cfff1632e5e8:0}, > content='Hello World') " > > > This suggests that Messenger is encoding the absolute-expiry-time, > creation-time, and group-sequence fields of the Properties section with the > value 0 if they arent specified, rather than omitting them (using nulls if > necessary to allow for later fields, or omitting them entirely if they are > trailing). I'm assuming the same thing would happen to e.g ttl if a header > section was required. > > Does that seem accurate, and if so is it something we should look to > prevent? So this happens in message.c in int pn_message_encode(pn_message_t *msg, char *bytes, size_t *size) ...... err = pn_data_fill(msg->data, "DL[CzSSSCssttSIS]", PROPERTIES, msg->id, pn_string_get_bytes(msg->user_id), pn_string_get(msg->address), pn_string_get(msg->subject), pn_string_get(msg->reply_to), msg->correlation_id, pn_string_get(msg->content_type), pn_string_get(msg->content_encoding), msg->expiry_time, msg->creation_time, pn_string_get(msg->group_id), msg->group_sequence, pn_string_get(msg->reply_to_group_id)); so basically it looks like it populates *all* standard PROPERTIES even if they aren't *explicitly* set. I commented that based on what I was seeing it looked like qpid::messaging wasn't using Proton's message code 'cause qpid::messaging only seems to be sending properties that have been explicitly set. It's probably worth aiming for consistency, but TBH I'm an awful lot more concerned that Proton Messenger doesn't seem to have a mechanism for setting link configuration and thus I couldn't use it for most of my more interesting examples, which was a shame. Nobody has yet confirmed nor refuted whether this observation is correct. I'd like to know for sure and if that stuff isn't supported I'd love to know what the intentions are. Cheers, Frase --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org