Skip to content

Commit 3532dce

Browse files
rolandshoemakerDaniel McCarney
authored andcommitted
Excise grpc maxConcurrentStreams configuration (letsencrypt#4257)
1 parent 3de2831 commit 3532dce

File tree

18 files changed

+0
-27
lines changed

18 files changed

+0
-27
lines changed

cmd/config.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,6 @@ type GRPCServerConfig struct {
215215
// (SANs). The server will reject clients that do not present a certificate
216216
// with a SAN present on the `ClientNames` list.
217217
ClientNames []string `json:"clientNames"`
218-
// gRPC multiplexes RPCs across HTTP/2 streams in a single TCP connection.
219-
// HTTP/2 servers are allowed to set a limit on the number of streams a client
220-
// will create. In Go by default that limit is 250. We can override that for
221-
// our servers with this config value. In practice this is a limit on how many
222-
// concurrent requests we can handle.
223-
MaxConcurrentStreams int
224218
}
225219

226220
// PortConfig specifies what ports the VA should call to on the remote

grpc/server.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,10 @@ func NewServer(c *cmd.GRPCServerConfig, tlsConfig *tls.Config, metrics serverMet
4646
return nil, nil, err
4747
}
4848

49-
maxConcurrentStreams := c.MaxConcurrentStreams
50-
if maxConcurrentStreams == 0 {
51-
maxConcurrentStreams = 250
52-
}
5349
si := newServerInterceptor(metrics, clk)
5450
return grpc.NewServer(
5551
grpc.Creds(creds),
5652
grpc.UnaryInterceptor(si.intercept),
57-
grpc.MaxConcurrentStreams(uint32(maxConcurrentStreams)),
5853
), l, nil
5954
}
6055

test/config-next/akamai-purger.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
},
1515
"grpc": {
1616
"address": ":9099",
17-
"maxConcurrentStreams": 2000,
1817
"clientNames": [
1918
"ocsp-updater.boulder",
2019
"ra.boulder",

test/config-next/ca-a.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"grpcCA": {
1818
"address": ":9093",
19-
"maxConcurrentStreams": 2000,
2019
"clientNames": [
2120
"ra.boulder"
2221
]

test/config-next/ca-b.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"grpcCA": {
1818
"address": ":9093",
19-
"maxConcurrentStreams": 2000,
2019
"clientNames": [
2120
"ra.boulder"
2221
]

test/config-next/publisher.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"debugAddr": ":8009",
77
"grpc": {
88
"address": ":9091",
9-
"maxConcurrentStreams": 2000,
109
"clientNames": [
1110
"ra.boulder",
1211
"ocsp-updater.boulder"

test/config-next/ra.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
},
4040
"grpc": {
4141
"address": ":9094",
42-
"maxConcurrentStreams": 2000,
4342
"clientNames": [
4443
"wfe.boulder",
4544
"admin-revoker.boulder"

test/config-next/sa.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
},
1313
"grpc": {
1414
"address": ":9095",
15-
"maxConcurrentStreams": 2000,
1615
"clientNames": [
1716
"admin-revoker.boulder",
1817
"ca.boulder",

test/config-next/va-remote-a.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"grpc": {
2323
"address": ":9097",
24-
"maxConcurrentStreams": 2000,
2524
"clientNames": [
2625
"va.boulder"
2726
]

test/config-next/va-remote-b.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"grpc": {
2323
"address": ":9098",
24-
"maxConcurrentStreams": 2000,
2524
"clientNames": [
2625
"va.boulder"
2726
]

0 commit comments

Comments
 (0)