Skip to content

Commit

Permalink
Reduce keep-alive interval and route timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Mar 2, 2020
1 parent fc0c5ae commit 7b48f37
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion pkg/router/route_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

const (
defaultRouteGroupKeepAliveInterval = 1 * time.Minute
defaultRouteGroupKeepAliveInterval = DefaultRouteKeepAlive / 2
defaultReadChBufSize = 1024
closeRoutineTimeout = 2 * time.Second
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

const (
// DefaultRouteKeepAlive is the default expiration interval for routes
DefaultRouteKeepAlive = 2 * time.Minute
DefaultRouteKeepAlive = 30 * time.Second
// DefaultRulesGCInterval is the default duration for garbage collection of routing rules.
DefaultRulesGCInterval = 5 * time.Second
acceptSize = 1024
Expand Down
2 changes: 0 additions & 2 deletions vendor/github.com/alecthomas/template/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions vendor/github.com/alecthomas/units/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/creack/pty/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions vendor/github.com/google/uuid/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions vendor/github.com/gorilla/handlers/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions vendor/github.com/sirupsen/logrus/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/gopkg.in/yaml.v2/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion vendor/gopkg.in/yaml.v2/go.sum

This file was deleted.

0 comments on commit 7b48f37

Please sign in to comment.