Add timeout and heartbeat options to the messagebus plugin.

The plugin will block for timeout seconds at most when trying to send a message to the broker.  After that amount of time, the send will fail and an error will be logged.
The plugin will check that the broker is reachable every heartbeat seconds.  If it is not reachable, the connection will be aborted and a new connection will be attempted the next time a message is sent.
This commit is contained in:
Mike Bonnet 2013-06-12 10:11:03 -04:00
parent b5da4d0587
commit a71ae2711b
2 changed files with 61 additions and 6 deletions

View file

@ -4,6 +4,8 @@
host = amqp.example.com
port = 5671
ssl = true
timeout = 10
heartbeat = 60
# PLAIN options
auth = PLAIN
username = guest