Skip to content

Commit 9781710

Browse files
authored
Set the read/write buffer size of the sentinel client to 4KiB (#3476)
Signed-off-by: Xiaolong Chen <fukua95@gmail.com>
1 parent 0b1e9f7 commit 9781710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sentinel.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
201201
MinRetryBackoff: opt.MinRetryBackoff,
202202
MaxRetryBackoff: opt.MaxRetryBackoff,
203203

204-
ReadBufferSize: opt.ReadBufferSize,
205-
WriteBufferSize: opt.WriteBufferSize,
204+
// The sentinel client uses a 4KiB read/write buffer size.
205+
ReadBufferSize: 4096,
206+
WriteBufferSize: 4096,
206207

207208
DialTimeout: opt.DialTimeout,
208209
ReadTimeout: opt.ReadTimeout,

0 commit comments

Comments
 (0)