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

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

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

PROTON-1452: Test for closed transport without side effects

"closed" tests based on pn_transport_pending/available have side effects: may
generate events or modify read/write buffer pointers, which makes using those
tests very sensitive to ordering.

New pn_transport_(head|tail)_closed have no side effects.


> add pn_proactor_disconnect
> --------------------------
>
>                 Key: PROTON-1452
>                 URL: https://issues.apache.org/jira/browse/PROTON-1452
>             Project: Qpid Proton
>          Issue Type: New Feature
>          Components: proton-c
>    Affects Versions: 0.17.0
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>             Fix For: 0.18.0
>
>
> Add this function:
> {code}
> /**
>  * Disconnect all connections and listeners currently active in the proactor.
>  *
>  * PN_LISTENER_CLOSE, PN_TRANSPORT_CLOSED and other events are generated as 
> usual.
>  * If no new listeners or connections are created, then a 
> PN_PROACTOR_INACTIVE event
>  * will be generated when all connections and listeners are disconnected.
>  *
>  * Note the proactor remains active, connections and listeners created after 
> a call to
>  * pn_proactor_disconnect() are not affected by it.
>  *
>  * @param condition if not NULL the condition data is copied to the 
> transports and listeners.
>  */
> PNP_EXTERN void pn_proactor_disconnect(pn_proactor_t *proactor, 
> pn_condition_t *condition);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to