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

Jiri Daněk commented on DISPATCH-2103:
--------------------------------------

[~kgiusti] I tried to do something about it in 
https://github.com/apache/qpid-dispatch/pull/880/commits/d650c4290b06d753df2b6faf6155c866e48a9b76#diff-499848eb941babedf228e3a15cd16f2494413db573933a47dc306f70b23c2430R921,
 but then I instead did the test in Python and did it differently, so it does 
not need to read the assigned port out of Dispatch, 
https://github.com/apache/qpid-dispatch/pull/1289

> Log the actual HTTP websocket listener port when 0 was specified in config
> --------------------------------------------------------------------------
>
>                 Key: DISPATCH-2103
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2103
>             Project: Qpid Dispatch
>          Issue Type: New Feature
>    Affects Versions: 1.15.0
>            Reporter: Jiri Daněk
>            Priority: Major
>             Fix For: 1.17.0
>
>
> {code}
>     if (hl->vhost) {
>         /* Store hl pointer in vhost */
>         void *vp = lws_protocol_vh_priv_zalloc(hl->vhost, &protocols[0], 
> sizeof(hl));
>         memcpy(vp, &hl, sizeof(hl));
>         qd_log(hs->log, QD_LOG_NOTICE, "Listening for HTTP on %s", 
> config->host_port);
>         return;
>     } else {
>         qd_log(hs->log, QD_LOG_NOTICE, "Error listening for HTTP on %s", 
> config->host_port);
>         goto error;
>     }
>     return;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to