From ccf72bb0b8aa9c421bb2964acca2dcd868d10a94 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 18 五月 2021 11:41:46 +0800 Subject: [PATCH] use more rational node timeout, 60s. --- box/center.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/box/center.cpp b/box/center.cpp index c5644b3..9ecd04b 100644 --- a/box/center.cpp +++ b/box/center.cpp @@ -822,7 +822,8 @@ } }; - auto center_ptr = std::make_shared<Synced<NodeCenter>>("#bhome_center", gc, 6s, 6s * 2); + auto nsec = seconds(NodeTimeoutSec()); + auto center_ptr = std::make_shared<Synced<NodeCenter>>("#bhome_center", gc, nsec, nsec * 3); // *3 to allow other clients to finish sending msgs. AddCenter(center_ptr); for (auto &kv : Centers()) { -- Gitblit v1.8.0