Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
3b22ecd5
Commit
3b22ecd5
authored
Feb 09, 2018
by
Ben Langfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keepalive config should be independent of TLS
parent
588f7a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
tiller.go
cmd/tiller/tiller.go
+8
-7
No files found.
cmd/tiller/tiller.go
View file @
3b22ecd5
...
...
@@ -157,15 +157,16 @@ func start() {
logger
.
Fatalf
(
"Could not create server TLS configuration: %v"
,
err
)
}
opts
=
append
(
opts
,
grpc
.
Creds
(
credentials
.
NewTLS
(
cfg
)))
opts
=
append
(
opts
,
grpc
.
KeepaliveParams
(
keepalive
.
ServerParameters
{
MaxConnectionIdle
:
10
*
time
.
Minute
,
// If needed, we can configure the max connection age
}))
opts
=
append
(
opts
,
grpc
.
KeepaliveEnforcementPolicy
(
keepalive
.
EnforcementPolicy
{
MinTime
:
time
.
Duration
(
20
)
*
time
.
Second
,
// For compatibility with the client keepalive.ClientParameters
}))
}
opts
=
append
(
opts
,
grpc
.
KeepaliveParams
(
keepalive
.
ServerParameters
{
MaxConnectionIdle
:
10
*
time
.
Minute
,
// If needed, we can configure the max connection age
}))
opts
=
append
(
opts
,
grpc
.
KeepaliveEnforcementPolicy
(
keepalive
.
EnforcementPolicy
{
MinTime
:
time
.
Duration
(
20
)
*
time
.
Second
,
// For compatibility with the client keepalive.ClientParameters
}))
rootServer
=
tiller
.
NewServer
(
opts
...
)
lstn
,
err
:=
net
.
Listen
(
"tcp"
,
*
grpcAddr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment