Skip to content

Commit

Permalink
change defualt dial timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Jun 22, 2020
1 parent f8b251e commit cea2299
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/relay/mwss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit cea2299

Please sign in to comment.