You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2016/06/20 16:48:05 UTC
[jira] [Updated] (PROTON-1240) proton::connection::virtual_host not
filled in on server side.
[ https://issues.apache.org/jira/browse/PROTON-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Stitcher updated PROTON-1240:
------------------------------------
Description:
The trivial server code:
{noformat}
#include <proton/default_container.hpp>
#include <proton/messaging_handler.hpp>
#include <iostream>
class ExampleHandler: public proton::messaging_handler {
void on_container_start(proton::container& c) override {
c.listen("localhost:5672");
}
void on_connection_open(proton::connection& c) override {
std::cout << "New incoming connection to " << c.virtual_host() << "\n";
}
};
int main() {
ExampleHandler h;
proton::default_container(h).run();
}
{noformat}
Produces output:
{noformat}
New incoming to
{noformat}
When another trivial C++ client connects to it.
was:
The trivial server code:
{noformat}
#include <proton/default_container.hpp>
#include <proton/messaging_handler.hpp>
#include <iostream>
class ExampleHandler: public proton::messaging_handler {
void on_container_start(proton::container& c) override {
c.listen("localhost:5672");
}
void on_connection_open(proton::connection& c) override {
std::cout << "New incoming connection to " << c.virtual_host() << "\n";
}
};
int main() {
ExampleHandler h;
proton::default_container(h).run();
}
{noformat}
Produces output:
{noformat}
New incoming to
{noformat}
> proton::connection::virtual_host not filled in on server side.
> --------------------------------------------------------------
>
> Key: PROTON-1240
> URL: https://issues.apache.org/jira/browse/PROTON-1240
> Project: Qpid Proton
> Issue Type: Bug
> Components: cpp-binding
> Reporter: Andrew Stitcher
> Assignee: Cliff Jansen
> Fix For: 0.13.0
>
>
> The trivial server code:
> {noformat}
> #include <proton/default_container.hpp>
> #include <proton/messaging_handler.hpp>
> #include <iostream>
> class ExampleHandler: public proton::messaging_handler {
> void on_container_start(proton::container& c) override {
> c.listen("localhost:5672");
> }
> void on_connection_open(proton::connection& c) override {
> std::cout << "New incoming connection to " << c.virtual_host() << "\n";
> }
> };
> int main() {
> ExampleHandler h;
> proton::default_container(h).run();
> }
> {noformat}
> Produces output:
> {noformat}
> New incoming to
> {noformat}
> When another trivial C++ client connects to it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org