From 20a4c4bfb5b9ea427f9117408ff0e4513ebef9eb Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 26 八月 2019 17:08:41 +0800
Subject: [PATCH] use shm direct read
---
nngopt.go | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/nngopt.go b/nngopt.go
index 0ffb761..bd7aa65 100644
--- a/nngopt.go
+++ b/nngopt.go
@@ -10,10 +10,14 @@
var (
maxRecvSize = 33 * 1024 * 1024
surveyorTime = 0
+ timeout = time.Duration(25)
)
+func setTimeOut(tm int) {
+ timeout = time.Duration(tm)
+}
+
func optDefault() map[string]interface{} {
- timeout := time.Duration(25)
options := make(map[string]interface{})
--
Gitblit v1.8.0