Skip to content

Commit

Permalink
upstream: change default maxconns to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
IrineSistiana committed Apr 28, 2022
1 parent 146b1f2 commit 7857c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dispatcher/pkg/upstream/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
defaultDialTimeout = time.Second * 5
defaultNoPipelineQueryTimeout = time.Second * 5
defaultNoConnReuseQueryTimeout = time.Second * 5
defaultMaxConns = 1
defaultMaxConns = 2
defaultMaxQueryPerConn = 65535
)

Expand Down
2 changes: 1 addition & 1 deletion dispatcher/pkg/upstream/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func NewUpstream(addr string, opt *Opt) (Upstream, error) {
if opt.IdleTimeout > 0 {
idleConnTimeout = opt.IdleTimeout
}
maxConn := 1
maxConn := 2
if opt.MaxConns > 0 {
maxConn = opt.MaxConns
}
Expand Down

0 comments on commit 7857c84

Please sign in to comment.