From e3a4b2ba5ee990214064828af56348d83027c837 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期六, 02 十一月 2019 17:35:16 +0800 Subject: [PATCH] --- --- labelFilter/req.go | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/labelFilter/req.go b/labelFilter/req.go index 09c5a62..1d94c70 100644 --- a/labelFilter/req.go +++ b/labelFilter/req.go @@ -21,7 +21,7 @@ //} //var pool chan *structure.ResultMsg = make(chan *structure.ResultMsg) func Die(format string, v ...interface{}) { - logger.Info("+++++++",format) + logger.Info("+++++++",format,v) //os.Exit(1) } @@ -72,7 +72,7 @@ for _, url := range ruleGroup.Urls { // 涓烘瘡涓猽rl寤虹珛涓�涓猚han - if strings.Contains(url.Url,"114") { + if strings.Contains(url.Url,"102") { urlPool[url.Url] = make(chan []byte,10) logger.Info("鍒濆鍖栦俊鎭細",urlPool) go GoPush(url.Url) @@ -99,6 +99,11 @@ logger.Error("鎺ユ敹鍝嶅簲瓒呮椂") return } + errTimeOut1 := sock.SetOption(mangos.OptionSendDeadline,time.Millisecond * 2000) + if errTimeOut1 != nil { + logger.Error("鍙戦�佽秴鏃�") + return + } //errWrite := sock.SetOption(mangos.OptionWriteQLen,10) //if errWrite != nil { // logger.Error("璁剧疆浼犺緭缂撳瓨澶у皬澶辫触") -- Gitblit v1.8.0