akalend / amqpcpp

rabbitcpp is a C++ library for Message Queue Server RabbitMQ
MIT License
222 stars 142 forks source link

Can I use the rabbimq federation feature? #107

Open gunhak01 opened 4 months ago

gunhak01 commented 4 months ago

I'm trying to configure a rabbitmq federation to send messages, sending and receiving messages works fine through the management ui, but I'm having issues with the library.

When I utilized consume.cpp in the library example, I was doing q2->consume(AMQP_NOACK); and when I receive a message through the federation, I get a string too long exception via std::exception. is there any way to fix this?

gunhak01 commented 4 months ago

It seems to be caused by not properly reading the <string,object> type header generated by the federation transfer. Is this possible to fix?