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

ASF subversion and git services commented on PROTON-1733:
---------------------------------------------------------

Commit bfbc211ab76cc8a06414f34ffbcd0009a92ff686 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=bfbc211 ]

PROTON-1733: [cpp] fix tests/examples to check port in on_open

Some C++ tests/examples were checking the listening port before the on_open
event. This is incorrect and fails with the libuv proactor.

Also:
- added missing #include <stdlib> for atoi in listener.cpp
- updated reconnect_test.cpp to use binding to port 0


> [cpp] Provide access to actual listening port for listen(":0")
> --------------------------------------------------------------
>
>                 Key: PROTON-1733
>                 URL: https://issues.apache.org/jira/browse/PROTON-1733
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: cpp-binding
>    Affects Versions: proton-c-0.19.0
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>             Fix For: proton-c-0.20.0
>
>
> Add
> int proton::listener::port() 
> to get the actual listening port used by an open listener, for the case where 
> the listener was started with port=0.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to