You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
amqpcpp lib stop to work after publish to invalid exchange
The code:
AMQP::Channel* m_channel;
void RpcHandler::send_ack(const AMQP::Message &message, quint64 deliveryTag, const QByteArray& ba)
{
AMQP::Envelope envelope(ba.data());
envelope.setCorrelationID(message.correlationID());
// if (!m_channel->publish("", message.replyTo(), envelope))
// LDEBUG() << "qqqqqqqqqqq";
// after this string library stop to work
// if coment this string and uncomment previous publish
// with correct exchange all is work (ack, receiving new messages etc.)
//
if (!m_channel->publish("ajhsakjdhasdkjhas", message.replyTo(), envelope))
LDEBUG() << "qqqqqqqqqqq";
if (!m_channel->ack(deliveryTag))
LDEBUG() << "sssssss1";
}
After sending message to invalid exchange all stop to work:
When I sends ack of my previous message, server does not receives it like I did not send ack. After exit from amqpcpp callback, message status on server changes from unacked to ready status, like I did not send ack.
Also publish with invalid exchange return true, ack also returns true
No new messages does not comes to my all consumed queus. Also if I send messages to other queues. Messages are pushes to RabbitMQ server and does not comes to my service anymore
No any error reporting/conection closing on AMQP::ConnectionHandler::onError
No any errors from ack or invalid publish
I have only error message on rabbitMq server (/var/log/rabbitmq/rabbit@morden.log)
Could you halp me? Is it bug? I do not want to stop working library, I want to have any errors as minimum e.g. ConnectionHandler::onError if everething stopped or return false from publish without stopping working library or any way to detect this situation in code (only from RabitMQ log file in current moment). Just restarting of my service is helping (I did not try to close and reopen connection). Would be great to have false from publish call and all continue to work.
amqpcpp version which I uses I did not find in source code or headers files or readme. So I do not know my current version of library(((
Thank you.
The text was updated successfully, but these errors were encountered:
Sorry. Invalid issue. I had published message to invalid project. amqp-cpp (from CopernicaMarketingSoftware) and amqpcpp it is diferent projects (I just forgot to add hyphen in project name)
amqpcpp lib stop to work after publish to invalid exchange
The code:
After sending message to invalid exchange all stop to work:
Also publish with invalid exchange return true, ack also returns true
I have only error message on rabbitMq server (/var/log/rabbitmq/rabbit@morden.log)
No any errors about my ack.
Could you halp me? Is it bug? I do not want to stop working library, I want to have any errors as minimum e.g. ConnectionHandler::onError if everething stopped or return false from publish without stopping working library or any way to detect this situation in code (only from RabitMQ log file in current moment). Just restarting of my service is helping (I did not try to close and reopen connection). Would be great to have false from publish call and all continue to work.
amqpcpp version which I uses I did not find in source code or headers files or readme. So I do not know my current version of library(((
Thank you.
The text was updated successfully, but these errors were encountered: