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:
parent
b5da4d0587
commit
a71ae2711b
2 changed files with 61 additions and 6 deletions
|
|
@ -4,6 +4,8 @@
|
|||
host = amqp.example.com
|
||||
port = 5671
|
||||
ssl = true
|
||||
timeout = 10
|
||||
heartbeat = 60
|
||||
# PLAIN options
|
||||
auth = PLAIN
|
||||
username = guest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue