use a heartbeat when connecting to the messagebus
This commit is contained in:
parent
58a57ea71b
commit
bec96c17e1
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ def get_sender():
|
|||
url += config.get('broker', 'port')
|
||||
|
||||
conn = qpid.messaging.Connection.establish(url,
|
||||
sasl_mechanisms=config.get('broker', 'auth'))
|
||||
sasl_mechanisms=config.get('broker', 'auth'),
|
||||
heartbeat=60)
|
||||
sess = conn.session()
|
||||
tgt = """%s;
|
||||
{ create: sender,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue