http: Add max stream duration (#10314)

Signed-off-by: shikugawa <rei@tetrate.io>

Mirrored from https://github.com/envoyproxy/envoy @ 7478c81e197013511b8d583d28281f1223f9ee79
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent 0568e5cc6f
commit 176df17e6c
  1. 6
      envoy/api/v2/core/protocol.proto
  2. 6
      envoy/config/core/v3/protocol.proto

@ -59,6 +59,12 @@ message HttpProtocolOptions {
// maximum number of request headers allowed is 100. Requests that exceed this limit will receive
// a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
google.protobuf.UInt32Value max_headers_count = 2 [(validate.rules).uint32 = {gte: 1}];
// Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be
// reset independent of any other timeouts. If not specified, this value is not set.
// The current implementation implements this timeout on downstream connections only.
// [#comment:TODO(shikugawa): add this functionality to upstream.]
google.protobuf.Duration max_stream_duration = 4;
}
// [#next-free-field: 6]

@ -67,6 +67,12 @@ message HttpProtocolOptions {
// maximum number of request headers allowed is 100. Requests that exceed this limit will receive
// a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
google.protobuf.UInt32Value max_headers_count = 2 [(validate.rules).uint32 = {gte: 1}];
// Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be
// reset independent of any other timeouts. If not specified, this value is not set.
// The current implementation implements this timeout on downstream connections only.
// [#comment:TODO(shikugawa): add this functionality to upstream.]
google.protobuf.Duration max_stream_duration = 4;
}
// [#next-free-field: 6]

Loading…
Cancel
Save