From 7e5a97543f762a47b5f122c2a6458dd67fbf139c Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 03 四月 2023 20:36:51 +0800
Subject: [PATCH] set default send/recv timeout to 60s
---
micronode.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/micronode.go b/micronode.go
index 2a681f6..5efdf89 100644
--- a/micronode.go
+++ b/micronode.go
@@ -27,7 +27,7 @@
}
func NewMicroNode(ctx context.Context,q chan os.Signal, serverId string, reg *RegisterInfo, fnLog func(v ...interface{})) (*MicroNode, error){
- conf := NewConfig(KEY_REGISTER,512,5,5000,5000,2000, fnLog)
+ conf := NewConfig(KEY_REGISTER,512,5,60000,60000,2000, fnLog)
handle, err := Register(ctx, q, conf, reg)
if err != nil {
return nil, err
@@ -277,4 +277,4 @@
if ms.handle != nil {
ms.handle.Free()
}
-}
\ No newline at end of file
+}
--
Gitblit v1.8.0