[ https://issues.apache.org/jira/browse/PROTON-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Stitcher resolved PROTON-1649. ------------------------------------- Resolution: Duplicate > [cpp] Reconnecting container cannot be stopped from a scheduled task > -------------------------------------------------------------------- > > Key: PROTON-1649 > URL: https://issues.apache.org/jira/browse/PROTON-1649 > Project: Qpid Proton > Issue Type: Bug > Components: cpp-binding > Affects Versions: proton-j-0.18.0 > Environment: commit bdfe982f5f2dd8b9735288623fbc8eabe4a5371f > (upstream/master) > Author: Jiri Danek <jda...@redhat.com> > Date: Tue Oct 10 21:57:30 2017 +0200 > PROTON-1622 Add coverage reporting to CMake build > Reporter: Jiri Daněk > Assignee: Andrew Stitcher > > The following test will get stuck > {code} > struct timed_reconnect_tester : public proton::messaging_handler { > struct timer_handler : public proton::void_function0 { > proton::container *c = nullptr; > void operator()() PN_CPP_OVERRIDE { > c->stop(); > } > }; > test_port port; > timer_handler handler; > void on_container_start(proton::container &c) PN_CPP_OVERRIDE { > c.listen(port.url()); > handler.c = &c; > proton::reconnect_options reconnect_options; > c.connect(port.url("127.0.0.1"), > proton::connection_options().reconnect(reconnect_options)); > c.schedule(proton::duration::IMMEDIATE, handler); > } > }; > int test_timed_reconnect() { > timed_reconnect_tester t; > proton::container(t).run(); > return 0; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org