qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiri Daněk (JIRA) <j...@apache.org>
Subject [jira] [Updated] (PROTON-1649) [cpp] Reconnecting container cannot be stopped from a scheduled task
Date Mon, 23 Oct 2017 17:08:00 GMT

     [ https://issues.apache.org/jira/browse/PROTON-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jiri Daněk updated PROTON-1649:
-------------------------------
    Summary: [cpp] Reconnecting container cannot be stopped from a scheduled task  (was: [cpp]
Reconnecting container cannot be stopped)

> [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 <jdanek@redhat.com>
> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message