mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafthttp: increase the size of streaming buffer
Streaming buffer is used for: 1. hand over data to io goroutine in non-blocking way 2. hold pressure for temprorary network delay 3. be able to wait on I/O instead of data coming under high throughput The old 1024 value is too small and is very likely to be full and break the streaming when suffering temprorary network delay.
This commit is contained in:
parent
dd57c1f189
commit
00ce0702b9
@ -34,7 +34,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
streamBufSize = 1024
|
||||
streamBufSize = 4096
|
||||
)
|
||||
|
||||
type WriteFlusher interface {
|
||||
|
Loading…
x
Reference in New Issue
Block a user