[ 
https://issues.apache.org/jira/browse/PROTON-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrian Preston updated PROTON-869:
----------------------------------
    Attachment: proton-869.patch

This patch adds a new pn_acceptor_attachments function, which (indirectly) 
allows a handler to be associated with a acceptor without casting.

It also checks for an invalid socket being returned by the acceptor's call to 
pn_accept and generates a PN_SELECTABLE_ERROR event.

> [proton-c] should be straightforward to associate handlers with acceptors
> -------------------------------------------------------------------------
>
>                 Key: PROTON-869
>                 URL: https://issues.apache.org/jira/browse/PROTON-869
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>    Affects Versions: 0.9
>            Reporter: Adrian Preston
>            Priority: Minor
>         Attachments: proton-869.patch
>
>
> Currently it is only possible to associate a handler with an acceptor by 
> casting it to pn_selectable_t.  This could be broken by a future change to 
> the implementation of pn_acceptor_t.  
> Related: the acceptor implementation does not generate a PN_SELECTABLE_ERROR 
> event if the act of accepting a socket connection fails.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to