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

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

Commit 3206e809dafd09dfd771aee51bfc1d19ae8893be in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=3206e809d ]

PROTON-2834: [C++] Container stop should ignore cancelled timers

Container stop is documented to stop the container after queued qork is
completed. However if shouldn't wait for any timer work that has already
been cancelled. So if there are only cancelled timers left it should
exit immediately.


> Container stop delayed by canceled work_queue task.
> ---------------------------------------------------
>
>                 Key: PROTON-2834
>                 URL: https://issues.apache.org/jira/browse/PROTON-2834
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>    Affects Versions: proton-c-0.39.0
>            Reporter: Clifford Jansen
>            Priority: Major
>         Attachments: tc1.cpp
>
>
> Canceling work using the work_handle does not remove the canceled item nor 
> adjust the next proactor timeout forward if necessary.
> This prevents the container from stopping until the last scheduled work has 
> reached its deadline, even if canceled.
> My first attempt at a fix fell short.  I believe a proper fix requires a 
> combination of checking for a shortened timer in cancel and some sort of 
> reaping of canceled work in cancel() or run_timer_jobs() or both.



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

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

Reply via email to