You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Ted Ross (JIRA)" <ji...@apache.org> on 2013/04/03 17:01:22 UTC
[jira] [Comment Edited] (PROTON-278) Messenger - allow the
application to control the use of the message reply-to field.
[ https://issues.apache.org/jira/browse/PROTON-278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13616324#comment-13616324 ]
Ted Ross edited comment on PROTON-278 at 4/3/13 3:00 PM:
---------------------------------------------------------
An alternative API is to add a method on the pn_message_t:
pn_message_expect_reply(pn_message_t *msg);
This removes the need to sequence the operation after setting the "to" address. It simply annotates the message as needing a functional reply-to. When the message is subsequently sent, messenger can create or re-use the necessary subscriptions and set the message's reply-to field.
was (Author: tedross):
An alternative API is to add a method on the pn_message_t:
pn_message_expect_reply(pn_message_t *msg);
This removes the need to sequence the operation after setting the "to" address. It simply annotates the message as needing a functional reply-to. When the messages is subsequently sent, messenger can create or re-use the necessary subscriptions and set the message's reply-to field.
> Messenger - allow the application to control the use of the message reply-to field.
> -----------------------------------------------------------------------------------
>
> Key: PROTON-278
> URL: https://issues.apache.org/jira/browse/PROTON-278
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-c
> Affects Versions: 0.4
> Reporter: Ken Giusti
> Priority: Blocker
> Fix For: 0.5
>
>
> Currently, messenger always sets the reply-to field in a sent message.
> This should be changed to allow the application to set the reply-to field only when a reply is desired. Messenger should be changed to not unconditionally set this field.
> In order to set this field in the case of a client that has not established a subscription, the client needs to be able to query messenger for the proper value of the reply-to address. A new api would need to be created for this. Proposal:
> int pn_messenger_set_reply( pn_messenger_t *msgr, pn_message_t *msg )
> Set the proper reply-to address in msg. msg would need to have its "to" address configured in order for this method to succeed.
> At least, I think the value for the reply-to may depend on the 'to' address... I may be wrong about that....
> Opinions?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira