alanxz/SimpleAmqpClient

Publish to a limited size queue with reject-publish hangs

grievertime opened this issue · 1 comments

Hi again, i'm already to a new issue.

try {

      std::cout<<"TRY PUBLISH"<<std::endl;

      _out_streams_session[i]->BasicPublish("", _out_streams[i], AmqpClient::BasicMessage::Create(out_stream_messages[i]),true);

      std::cout<<"PUBLISH OK"<<std::endl;

} catch (...) {

      std::cout<<"ERROR PUBLISH"<<std::endl;

}

after the first (queue_size) publish the BasicPublish call get stuck forever. I have also tried with mandatory false but no difference.
Am I missing something?

Best Regards,
Marco

already solved in pull request #216