rabbitmq / rabbitmq-erlang-client

Erlang client for RabbitMQ
https://www.rabbitmq.com/
Other
184 stars 127 forks source link

Improve connection failure detection with direct connections #8

Closed capflam closed 10 years ago

capflam commented 10 years ago

With network connections, one obvious way to detect errors is to monitor the connection and the channel processes. So if the connection with RabbitMQ is lost or if the channel's writer dies, it is easy to detect the error and restart the processes.

But this does not work with direct connections. Of course, workarounds can be found. But, IMHO, it is more elegant to deal with these errors in the same way, regardless of the type of connection used.

The following patches fix this issue.

michaelklishin commented 10 years ago

This repository is a mirror. Please create a patch against the Mercurial one and post it to rabbitmq-users. Thank you!

capflam commented 10 years ago

Done :) Thanks