@@ -25,21 +25,6 @@ const (
25
25
// of Timeout and if no activity is seen even after that the connection is
26
26
// closed. grpc-go default 20s
27
27
defaultServerKeepAliveTimeout = 20 * time .Second
28
- // Duration for the maximum amount of time a http2 connection can exist
29
- // before sending GOAWAY. Internally in gRPC a +-10% jitter is added to
30
- // mitigate retry storms.
31
- defaultServerMaxConnectionAge = 10 * time .Minute
32
- // After MaxConnectionAge, MaxConnectionAgeGrace specifies the amount of time
33
- // between when the server sends a GOAWAY to the client to initiate graceful
34
- // shutdown, and when the server closes the connection.
35
- //
36
- // The server expects that this grace period will allow the client to complete
37
- // any ongoing requests, after which it will forcefully terminate the connection.
38
- // If a request takes longer than this grace period, it will *fail*.
39
- // We *never* want an RPC to live longer than this value.
40
- //
41
- // invariant: Any value < 1 second will be internally overridden by gRPC.
42
- defaultServerMaxConnectionAgeGrace = math .MaxInt64
43
28
)
44
29
45
30
var DefaultServerOptions = []grpc.ServerOption {
@@ -51,10 +36,8 @@ var DefaultServerOptions = []grpc.ServerOption{
51
36
PermitWithoutStream : defaultPermitWithoutStream ,
52
37
}),
53
38
grpc .KeepaliveParams (keepalive.ServerParameters {
54
- Time : defaultServerKeepAliveInterval ,
55
- Timeout : defaultServerKeepAliveTimeout ,
56
- MaxConnectionAge : defaultServerMaxConnectionAge ,
57
- MaxConnectionAgeGrace : defaultServerMaxConnectionAgeGrace ,
39
+ Time : defaultServerKeepAliveInterval ,
40
+ Timeout : defaultServerKeepAliveTimeout ,
58
41
}),
59
42
}
60
43
0 commit comments