소스 검색

Merge pull request #2998 from gravitl/NET-1165

configure mq conn params
Abhishek K 1 년 전
부모
커밋
66e6c217a8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mq/mq.go

+ 2 - 2
mq/mq.go

@@ -34,8 +34,8 @@ func setMqOptions(user, password string, opts *mqtt.ClientOptions) {
 	opts.SetAutoReconnect(true)
 	opts.SetConnectRetry(true)
 	opts.SetCleanSession(true)
-	opts.SetConnectRetryInterval(time.Second * 4)
-	opts.SetKeepAlive(time.Minute)
+	opts.SetConnectRetryInterval(time.Second * 3)
+	opts.SetKeepAlive(time.Second * 5)
 	opts.SetCleanSession(true)
 	opts.SetWriteTimeout(time.Minute)
 }