Skip to content

Commit 70dc482

Browse files
authored
Set default MaxConnectionAge, MaxConnectionAgeGrace to infinity (#514)
1 parent a7dfa3c commit 70dc482

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import (
3636
const (
3737
DefaultRPCPort = 11101
3838
DefaultRPCMaxRequestsBytes = 4 * 1024 * 1024 // 4MiB
39-
DefaultRPCMaxConnectionAge = 50 * time.Second
40-
DefaultRPCMaxConnectionAgeGrace = 10 * time.Second
39+
DefaultRPCMaxConnectionAge = 0 * time.Second
40+
DefaultRPCMaxConnectionAgeGrace = 0 * time.Second
4141

4242
DefaultProfilingPort = 11102
4343

server/config.sample.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ RPC:
88

99
# MaxConnectionAge is a duration for the maximum amount of time a connection may exist
1010
# before it will be closed by sending a GoAway.
11-
MaxConnectionAge: "50s"
11+
MaxConnectionAge: "0s"
1212

1313
# MaxConnectionAgeGrace is a duration for the amount of time after receiving a GoAway
1414
# for pending RPCs to complete before forcibly closing connections.
15-
MaxConnectionAgeGrace: "10s"
15+
MaxConnectionAgeGrace: "0s"
1616

1717
# CertFile is the file containing the TLS certificate.
1818
CertFile: ""

0 commit comments

Comments
 (0)