Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to establish a connection #384

Open
suizhizhou opened this issue Nov 24, 2020 · 1 comment
Open

Unable to establish a connection #384

suizhizhou opened this issue Nov 24, 2020 · 1 comment

Comments

@suizhizhou
Copy link

I use it on Linux, compile it by default, and unable to establish a connection. But the result of "channel.connected()" is true. code like this:

TestTcpHander testHandler;
AMQP::Address addr("amqp://guest:guest@10.197.237.151:5672/");
std::cout << addr.vhost() << std::endl;
AMQP::TcpConnection Conn(&testHandler, addr);
AMQP::TcpChannel channel(&Conn);

, the callback never be called. I alse use rabbitmq-c, it works good.

How do I troubleshoot errors,

@EmielBruijntjes
Copy link
Member

You need to run the event loop. Are you doing that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants