From cea229990b2ea22e1f0d9da2f529b6c110de726a Mon Sep 17 00:00:00 2001 From: ehco1996 Date: Mon, 22 Jun 2020 17:16:26 +0800 Subject: [PATCH] change defualt dial timeout --- internal/relay/mwss.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/relay/mwss.go b/internal/relay/mwss.go index 5f49731f9..a72a8cdc6 100644 --- a/internal/relay/mwss.go +++ b/internal/relay/mwss.go @@ -94,7 +94,6 @@ func (tr *mwssTransporter) Dial(addr string) (conn net.Conn, err error) { // 找到可以用的session for _, s := range sessions { if s.session.NumStreams() >= s.maxStreamCnt { - log.Printf("session: %v reach the max stream count", s.session) ok = false } else { session = s @@ -126,7 +125,7 @@ func (tr *mwssTransporter) Dial(addr string) (conn net.Conn, err error) { if err != nil { return nil, err } - conn, err = net.DialTimeout("tcp", u.Host, TcpDeadline) + conn, err = net.DialTimeout("tcp", u.Host, WsDeadline) if err != nil { return nil, err }