[ 
https://issues.apache.org/jira/browse/PROTON-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505243#comment-13505243
 ] 

Affan Dar commented on PROTON-160:
----------------------------------

Regarding the messenger resolution process, the following semantic is one 
possibility and seems to reflect what you are thinking as well:

- message.network_host, if specified, is the physical address of the host. I.e. 
this is the destination end point for the TCP connection. 

- message.address is the "TLS endpoint" of the host which is used in 
open.hostname and SASL etc. Furthermore, if message.network_host is not 
specified then this will also be used as the destination end point for the TCP 
connection, i.e. the easy default that you mentioned.

- Messages with the same message.address can have different values in 
message.network_host and the connections associated with the respective 
networkhosts would be used to send these messages. 

I think PROTON-136 can benefit from this by using the message.address as the 
key for the session cache.

Furthermore, are there plans on adding auto-redirect to the resolution process? 
I think it raises some other questions. If there is a JIRA tracking that work 
then I can add some comments to it.
                
> Allow open.hostname to be configured independently of network hostname
> ----------------------------------------------------------------------
>
>                 Key: PROTON-160
>                 URL: https://issues.apache.org/jira/browse/PROTON-160
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>    Affects Versions: 0.1, 0.2
>            Reporter: David Ingham
>
> In a scaled-out, multi-tenant broker environment, the host on which the 
> container is running is often different from the host to which a client is 
> establishing the tcp connection. The 'hostname' field in the connection open 
> performative was added to support this scenario. Currently there's no way to 
> control this from the Messenger API.
> Options include:
> (1) (preferred) add a new 'networkhost' field to Message to allow the network 
> address to be specified. If provided, this information would be used when 
> establishing the network connection and the data in the 'address' field would 
> be used in the connection open hostname field. This is somewhat in line with 
> the way that connection redirect (amqp:connection:redirect) is specified.
> (2) extend the syntax of address with query string to supply hostname, e.g., 
> username:password@tcpaddress:tcpport/entityname?hostname=foo where 'foo' 
> would become the hostname used in the connection open frame. This is the 
> approach used by the current Qpid AMQP 1.0 JMS client.

--
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

Reply via email to