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

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

Commit 8a84224cc79377b09bed59a33d1d11b641b45505 in qpid-proton's branch 
refs/heads/0.27.x from Clifford Jansen
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=8a84224 ]

PROTON-2027: Test case with two closing connection contexts competing with a 
third context in pn_proactor_disconnect().

(cherry picked from commit f973528912b3b74e8d1e50317429e202e9f51ec4)


> Proactor connection wake after memory freed when using 
> pn_proactor_disconnect().
> --------------------------------------------------------------------------------
>
>                 Key: PROTON-2027
>                 URL: https://issues.apache.org/jira/browse/PROTON-2027
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.27.0
>            Reporter: Cliff Jansen
>            Assignee: Cliff Jansen
>            Priority: Major
>             Fix For: proton-c-0.27.1, proton-c-0.28.0
>
>
> The normal cleanup procedure for epoll and win_iocp proactors waits for all 
> async activity to complete before freeing memory.
> pn_proactor_disconnect can't actually force a close so it launches a separate 
> async activity piggy-backed on the internal wake mechanism of any connections 
> to be closed.
> If the disconnect is happening at the same time as a separate thread doing a 
> normal close, a new wake can result after concluding there are none left.
> The solution is to mark the connection as "already awake" before entering the 
> cleanup code so new wakes are no-ops.  The libuv proactor doesn't need this 
> as the disconnect function is managed within libuv and never competes with 
> the normal close operation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to