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

loss message #65

Open
TomeC opened this issue Jun 19, 2017 · 2 comments
Open

loss message #65

TomeC opened this issue Jun 19, 2017 · 2 comments

Comments

@TomeC
Copy link
Collaborator

TomeC commented Jun 19, 2017

when i init a connection and send a message is success, but wait may be 1h, then send to a message return ok, but rabbitmq server not received that message. retry will return error. how can i check the connection whether ok?

@TomeC
Copy link
Collaborator Author

TomeC commented Jun 28, 2017

I was resolve this problem by set heart beat.
amqp_rpc_reply_t res = amqp_login(cnn, vhost.c_str(), 0, FRAME_MAX, **heart_beat**, AMQP_SASL_METHOD_PLAIN, user.c_str(), password.c_str());

@zhanb
Copy link

zhanb commented Sep 6, 2018

@TomeC 加上心跳如果网断了会报错吗,还是怎么样

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