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

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

Commit 0987726b3dd34da77bf826ac3cfb5b6fc19ba60b in qpid-proton's branch 
refs/heads/main from Clifford Jansen
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=0987726b3 ]

PROTON-2763: Raw connection double DISCONNECT event


> Two final disconnect events possible from a raw connection
> ----------------------------------------------------------
>
>                 Key: PROTON-2763
>                 URL: https://issues.apache.org/jira/browse/PROTON-2763
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.39.0
>            Reporter: Clifford Jansen
>            Assignee: Clifford Jansen
>            Priority: Major
>
> In writing a new threaderciser for raw connections the following scenario can 
> result in a state machine mixup and second disconnect.
> If a pn_raw_connection_wake() occurs around the time that the first 
> disconnect event is being consumed the task may be added to the global ready 
> list for processing.  The batch done() processing will (correctly) defer the 
> task cleanup until the task is next scheduled via the ready list.  However 
> the raw connection forgets that it has already done the disconnect and 
> restarts the state machine at the first disconnect stage, resulting in the 
> second disconnect event.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to