[
https://issues.apache.org/jira/browse/PROTON-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15936586#comment-15936586
]
ASF subversion and git services commented on PROTON-1438:
---------------------------------------------------------
Commit d48bf9b1228cc8ad82b3a0afc5b6402ab9db37ec in qpid-proton's branch
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=d48bf9b ]
PROTON-1438: added pn_event_condition convenience function
A convenience function to make it easier to write generic error handling
functions for events.
/*
* If the event context object has a condition and the condition is set
* return it, otherwise return NULL.
* If the event context object has remote and local conditions,
* try the remote condition first, then the local.
*/
PN_EXTERN struct pn_condition_t *pn_event_condition(pn_event_t *event);
> 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]