Implement HTTP2 HPACK table size options
This commit is contained in:
parent
5d830477b7
commit
0b7f0b4042
7 changed files with 115 additions and 8 deletions
|
|
@ -107,6 +107,8 @@ They can be defined by using a file (YAML or TOML) or CLI arguments.
|
|||
address: ":8888" # same as ":8888/tcp"
|
||||
http2:
|
||||
maxConcurrentStreams: 42
|
||||
maxDecoderHeaderTableSize: 42
|
||||
maxEncoderHeaderTableSize: 42
|
||||
http3:
|
||||
advertisedPort: 8888
|
||||
transport:
|
||||
|
|
@ -136,6 +138,8 @@ They can be defined by using a file (YAML or TOML) or CLI arguments.
|
|||
address = ":8888" # same as ":8888/tcp"
|
||||
[entryPoints.name.http2]
|
||||
maxConcurrentStreams = 42
|
||||
maxDecoderHeaderTableSize = 42
|
||||
maxEncoderHeaderTableSize = 42
|
||||
[entryPoints.name.http3]
|
||||
advertisedPort = 8888
|
||||
[entryPoints.name.transport]
|
||||
|
|
@ -158,6 +162,8 @@ They can be defined by using a file (YAML or TOML) or CLI arguments.
|
|||
## Static configuration
|
||||
--entryPoints.name.address=:8888 # same as :8888/tcp
|
||||
--entryPoints.name.http2.maxConcurrentStreams=42
|
||||
--entryPoints.name.http2.maxDecoderHeaderTableSize=42
|
||||
--entryPoints.name.http2.maxEncoderHeaderTableSize=42
|
||||
--entryPoints.name.http3.advertisedport=8888
|
||||
--entryPoints.name.transport.lifeCycle.requestAcceptGraceTimeout=42
|
||||
--entryPoints.name.transport.lifeCycle.graceTimeOut=42
|
||||
|
|
@ -408,6 +414,52 @@ entryPoints:
|
|||
--entryPoints.name.http2.maxConcurrentStreams=250
|
||||
```
|
||||
|
||||
#### `maxDecoderHeaderTableSize`
|
||||
|
||||
_Optional, Default=4096_
|
||||
|
||||
`maxDecoderHeaderTableSize` specifies the maximum size of the HTTP2 HPACK header table on the decoding (receiving from client) side.
|
||||
|
||||
```yaml tab="File (YAML)"
|
||||
entryPoints:
|
||||
foo:
|
||||
http2:
|
||||
maxDecoderHeaderTableSize: 4096
|
||||
```
|
||||
|
||||
```toml tab="File (TOML)"
|
||||
[entryPoints.foo]
|
||||
[entryPoints.foo.http2]
|
||||
maxDecoderHeaderTableSize = 4096
|
||||
```
|
||||
|
||||
```bash tab="CLI"
|
||||
--entryPoints.name.http2.maxDecoderHeaderTableSize=4096
|
||||
```
|
||||
|
||||
#### `maxEncoderHeaderTableSize`
|
||||
|
||||
_Optional, Default=4096_
|
||||
|
||||
`maxEncoderHeaderTableSize` specifies the maximum size of the HTTP2 HPACK header table on the encoding (sending to client) side.
|
||||
|
||||
```yaml tab="File (YAML)"
|
||||
entryPoints:
|
||||
foo:
|
||||
http2:
|
||||
maxEncoderHeaderTableSize: 4096
|
||||
```
|
||||
|
||||
```toml tab="File (TOML)"
|
||||
[entryPoints.foo]
|
||||
[entryPoints.foo.http2]
|
||||
maxEncoderHeaderTableSize = 4096
|
||||
```
|
||||
|
||||
```bash tab="CLI"
|
||||
--entryPoints.name.http2.maxEncoderHeaderTableSize=4096
|
||||
```
|
||||
|
||||
### HTTP/3
|
||||
|
||||
#### `http3`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue