[
https://issues.apache.org/jira/browse/PROTON-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15936704#comment-15936704
]
Alan Conway commented on PROTON-1438:
-------------------------------------
Sorry [~astitcher] just spotted your comment: "I'm not sure I like the
https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=03ca9be change."
We can revert this if you think it really makes things worse. I wanted to make
this argument work as a simple "host:port" string, as well as a formal URL.
Notation like ::1:5672 is pretty common in standard tools, e.g. do 'ss -tl6'.
It is potentially ambiguous but that's built-in to ipv6. Note that [::1] is not
a valid hostname on it's own, it is only valid as an escape in a URL, and while
not using the [] escapes is illegal in a URL, so is dropping the amqp:// scheme
part so we're already being more lax than standard URLs.
If you feel strongly I can probably be persuaded.
> c proactor listening behavior
> -----------------------------
>
> Key: PROTON-1438
> URL: https://issues.apache.org/jira/browse/PROTON-1438
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-c
> Affects Versions: 0.17.0
> Reporter: Alan Conway
> Assignee: Alan Conway
> Fix For: 0.18.0
>
>
> Improved listening behavior for pn_proactor_listen to allow selective
> listening by protocol (ipv4/v6) or portable "listen to everything".
> Host can be a host name, IPV4 or IPV6 literal,
> or the empty string/NULL (treated the same). The empty string listens on all
> local addresses. A host name listens on all addresses associated with the
> name. An IPV6 literal address (or wildcard '[::]') listens only for IPV6. An
> IPV4 literal address (or wildcard '0.0.0.0') listens only for IPV4.
> - pn_proactor_listen may listen on more than one socket for ipv6/v4 or
> for DNS names with multiple address records.
> - the 'backlog' applies to *each* socket (open for debate - we might
> want to divide the backlog among sockets with some minimum if there's
> not enough)
> - pn_listener_close() closes all sockets, PN_LISTENER_CLOSE event
> indicates all sockets are closed.
> - An error on any socket will close all the sockets of the listener,
> PN_LISTERN_CLOSE event indicates all sockets are closed and provides
> the error that triggered the close.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]