Jiri Daněk created PROTON-1649:
----------------------------------
Summary: [cpp] Reconnecting container cannot be stopped
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 <[email protected]>
Date: Tue Oct 10 21:57:30 2017 +0200
PROTON-1622 Add coverage reporting to CMake build
Reporter: Jiri Daněk
Assignee: Cliff Jansen
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: [email protected]
For additional commands, e-mail: [email protected]