Skip to content

Commit

Permalink
backend: adjust timeout parameters (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored Feb 2, 2023
1 parent 32e96e6 commit e3d8e52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/proxy/backend/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (auth *Authenticator) handshakeFirstTime(logger *zap.Logger, cctx ConnConte
auth.attrs = clientResp.Attrs

// In case of testing, backendIO is passed manually that we don't want to bother with the routing logic.
backendIO, err := getBackendIO(cctx, auth, clientResp, 5*time.Second)
backendIO, err := getBackendIO(cctx, auth, clientResp, 15*time.Second)
if err != nil {
return WrapUserError(err, connectErrMsg)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/backend/backend_conn_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
)

const (
DialTimeout = 5 * time.Second
DialTimeout = 1 * time.Second
CheckBackendInterval = time.Minute
)

Expand Down

0 comments on commit e3d8e52

Please sign in to comment.