File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,8 @@ func WithH2C(enable bool) config.Option {
278
278
}}
279
279
}
280
280
281
- // WithReadBufferSize sets the read buffer size which also limit the header size.
281
+ // WithReadBufferSize sets the size of each read buffer node in standard transport.
282
+ // NOTE: this cannot limit the header size.
282
283
func WithReadBufferSize (size int ) config.Option {
283
284
return config.Option {F : func (o * config.Options ) {
284
285
o .ReadBufferSize = size
Original file line number Diff line number Diff line change @@ -31,13 +31,8 @@ import (
31
31
)
32
32
33
33
type transport struct {
34
- // Per-connection buffer size for requests' reading.
35
- // This also limits the maximum header size.
36
- //
37
- // Increase this buffer if your clients send multi-KB RequestURIs
38
- // and/or multi-KB headers (for example, BIG cookies).
39
- //
40
- // Default buffer size is used if not set.
34
+ // The underlying read buffer is a buffer node list, `readBufferSize` is the size of a single node.
35
+ // `defaultReadBufferSize` (4KB) is used if not set.
41
36
readBufferSize int
42
37
network string
43
38
addr string
You can’t perform that action at this time.
0 commit comments