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

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

Commit 43461aa037ee2da6a5bb2c2e24849d0df1c49452 in qpid-proton's branch 
refs/heads/0.14.x from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=43461aa ]

PROTON-1243: Stop pn_reactor_stop from causing an infinite loop when called 
from within callback


> Calling proton::container::stop() from within event handler causes infinite 
> recursion
> -------------------------------------------------------------------------------------
>
>                 Key: PROTON-1243
>                 URL: https://issues.apache.org/jira/browse/PROTON-1243
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding, proton-c
>    Affects Versions: 0.13.0
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>             Fix For: 0.15.0
>
>
> There is current way to use proton::container::stop() or pn_reactor_stop() 
> from within an event handler without causing infinite recursion.
> Indeed there is even a note inside pn_reactor_stop():
> {noformat}
> ...
> // XXX: should consider removing this from stop to avoid reentrance
> pn_reactor_process(reactor);
> ...
> {noformat}
> So I think there is no way to fix the issue in the current C++ implementation 
> without removing the recursion somehow from the C code. However I don't know 
> if doing this will cause a bug in some other circumstances!



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

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

Reply via email to