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

Alan Conway closed PROTON-1206.
-------------------------------
    Resolution: Not A Problem

False alarm. If you modify the example as shown, there are two connections, one 
for sender and one for receiver. The example was only closing one connection 
and therefore not exiting because the other was still open. The test runner was 
killing the hung process. When the example is modified to close both 
connections it functions normally.

> c++ core dump in modified helloworld.cpp example 
> -------------------------------------------------
>
>                 Key: PROTON-1206
>                 URL: https://issues.apache.org/jira/browse/PROTON-1206
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>    Affects Versions: 0.12.2
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>             Fix For: 0.13.0
>
>
> With the following change the helloworld.cpp example core dumps:
> {code}
> modified   examples/cpp/helloworld.cpp
> @@ -38,10 +38,6 @@ class hello_world : public proton::messaging_handler {
>      hello_world(const std::string& u) : url(u) {}
>  
>      void on_container_start(proton::container& c) OVERRIDE {
> -        c.connect(url);
> -    }
> -
> -    void on_connection_open(proton::connection& c) OVERRIDE {
>          c.open_receiver(url.path());
>          c.open_sender(url.path());
>      }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to