alanxz / SimpleAmqpClient

Simple C++ Interface to rabbitmq-c
MIT License
397 stars 213 forks source link

Add timeout parameter to Channel::BasicPublish() #333

Open ylegoc opened 10 months ago

ylegoc commented 10 months ago

At the Institut Laue-Langevin (research center using neutrons), we use the SimpleAmqpClient library to send live messages of our log application and recently we had a network issue so that all our servers were blocked in the Channel::BasicPublish() (in the GetMethodOnChannel() to be more precise). I propose to add a timeout on Channel::BasicPublish() following the Channel::BasicConsume() interface.