[rabbitmq-discuss] rabbitmq-c RPC-style commands doesn't work after amqp_get_rpc_reply return AMQP_RESPONSE_SERVER_EXCEPTION

Matthias Radestock matthias at rabbitmq.com
Mon Jul 22 08:29:39 BST 2013


On 22/07/13 07:25, Alan Antonuk wrote:
>     - A AMQP_CHANNEL_CLOSE_METHOD means a channel exception has
> occurred, you can cast the reply.decoded to amqp_channel_close_t* to get
> details on why the channel was closed.  Once a channel has been closed,
> it should not be used without reopening the channel with
> amqp_channel_open().

Presumably the app should also send back a channel.close_ok; or is that 
handled by the library?

>     - A AMQP_CONNECTION_CLOSE_METHOD means a connection exception has
> occurred. You can cast the reply.decoded to amqp_connection_close_t* to
> get details on why the broker closed the connection.  Once the
> connection has been closed the entire connection should be destroyed and
> a new one created before continuing.

Ditto, but for connection.close_ok.


More information about the rabbitmq-discuss mailing list