You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/10/23 16:39:00 UTC
[jira] [Commented] (PROTON-1628) [cpp] Stopping container in
on_container_start will hang
[ https://issues.apache.org/jira/browse/PROTON-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16215418#comment-16215418 ]
ASF subversion and git services commented on PROTON-1628:
---------------------------------------------------------
Commit e1708890cad88175f5465275a854bd279b7109bc in qpid-proton's branch refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=e170889 ]
PROTON-1628: [cpp] Stopping container in on_container_start will hang
Check if already stopping before entering the event loop in container::impl::thread()
> [cpp] Stopping container in on_container_start will hang
> --------------------------------------------------------
>
> Key: PROTON-1628
> URL: https://issues.apache.org/jira/browse/PROTON-1628
> Project: Qpid Proton
> Issue Type: Bug
> Components: cpp-binding
> Affects Versions: proton-c-0.18.0
> Environment: Linux, epoll io, master tip at 72b7ea0508e94aae3e5d9470293bc5c7e8250a45 PROTON-1592: [python] restore original tx_recv.py example
> Reporter: Jiri Daněk
> Assignee: Alan Conway
> Fix For: proton-c-0.18.1
>
>
> {code}
> class immediate_stop_tester : public proton::messaging_handler {
> public:
> void on_container_start(proton::container &c) PN_CPP_OVERRIDE {
> c.stop();
> }
> };
> int test_container_immediate_stop() {
> immediate_stop_tester t;
> proton::container(t).run(); // will hang
> return 0;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org