Fixed nsq max idle time. (#3621)

* Fixed nsq max idle time.

* Update nsq.md

Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
yandycom 2021-05-25 20:39:16 +08:00 committed by GitHub
parent 5eada19fb0
commit f258bfa255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,8 @@ return [
'connect_timeout' => 10.0,
'wait_timeout' => 3.0,
'heartbeat' => -1,
'max_idle_time' => 60.0,
// 因为 Nsq 服务默认的闲置时间是 60s故框架维护的最大闲置时间应小于 60s
'max_idle_time' => 30.0,
],
],
];

View File

@ -20,7 +20,7 @@ return [
'connect_timeout' => 10.0,
'wait_timeout' => 3.0,
'heartbeat' => -1,
'max_idle_time' => 60.0,
'max_idle_time' => 30.0,
],
'nsqd' => [
'port' => 4151,