[
https://issues.apache.org/jira/browse/PROTON-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324866#comment-15324866
]
Ken Giusti commented on PROTON-1134:
------------------------------------
Using pn_connection_set_hostname() to set the transport address on Reactor/C
connections is bad practice and specifically not recommended. A new reactor
method has been introduced to deal with this:
pn_reactor_connection_to_host(<reactor>, <host>, <port>, <handler>)
And the pn_reactor_connection(<reactor>, <handler>) has been deprecated in
favor of this new interface.
----
The python Container.connect() method now takes an optional parameter with the
keyword 'virtual_host'. This can be used to set the 'hostname' attribute in
the Open frame sent by the client.
---
0.13.0 has a known issue with the C/Reactor. If the reactor connection's
hostname is used to configure the transport address (see above), then C/Reactor
may fail to connect if the hostname does not include a ":<port>" suffix.
Using the connection's hostname as the transport address is discouraged. Use
the new reactor connection factory method pn_reactor_connection_to_host()
instead.
> 0.13.0 release tasks
> --------------------
>
> Key: PROTON-1134
> URL: https://issues.apache.org/jira/browse/PROTON-1134
> Project: Qpid Proton
> Issue Type: Task
> Components: release
> Reporter: Justin Ross
> Assignee: Justin Ross
> Fix For: 0.13.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]