JuliaComputing / AMQPClient.jl

A Julia AMQP (Advanced Message Queuing Protocol) / RabbitMQ Client.
Other
39 stars 21 forks source link

throw when channel is closed due to server error #29

Closed tanmaykm closed 3 years ago

tanmaykm commented 3 years ago

Some server errors lead to the channel being closed (server initiated). Certain API calls with invalid parameters may also trigger that (e.g. trying to redeclare an existing exchange as a different type). No response is sent for the failed API request in that case. Synchronous API calls that do not check for this condition would time out under this situation.

With this change, all synchronous API calls check for channel errors and throw an exception.

fixes #23