mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-05 20:54:18 +08:00
mq options
This commit is contained in:
parent
9ec8283659
commit
10b93d0118
1 changed files with 3 additions and 2 deletions
5
mq/mq.go
5
mq/mq.go
|
@ -34,8 +34,9 @@ func setMqOptions(user, password string, opts *mqtt.ClientOptions) {
|
|||
opts.SetAutoReconnect(true)
|
||||
opts.SetConnectRetry(true)
|
||||
opts.SetCleanSession(true)
|
||||
opts.SetConnectRetryInterval(time.Second * 1)
|
||||
opts.SetKeepAlive(time.Second * 10)
|
||||
opts.SetConnectRetryInterval(time.Second * 3)
|
||||
opts.SetKeepAlive(120 * time.Second)
|
||||
opts.SetPingTimeout(30 * time.Second)
|
||||
opts.SetOrderMatters(false)
|
||||
opts.SetWriteTimeout(time.Minute)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue