From e54b8e58780c7d9f37b06cc4e1dc88badb2129c9 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 18 五月 2021 17:02:21 +0800
Subject: [PATCH] remove sync recv, node cache msgs for sync recv.
---
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