mirror of
https://github.com/redis/go-redis.git
synced 2025-09-02 22:01:16 +03:00
Set the read/write buffer size of the sentinel client to 4KiB (#3476)
Signed-off-by: Xiaolong Chen <fukua95@gmail.com>
This commit is contained in:
@@ -201,8 +201,9 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
|
||||
MinRetryBackoff: opt.MinRetryBackoff,
|
||||
MaxRetryBackoff: opt.MaxRetryBackoff,
|
||||
|
||||
ReadBufferSize: opt.ReadBufferSize,
|
||||
WriteBufferSize: opt.WriteBufferSize,
|
||||
// The sentinel client uses a 4KiB read/write buffer size.
|
||||
ReadBufferSize: 4096,
|
||||
WriteBufferSize: 4096,
|
||||
|
||||
DialTimeout: opt.DialTimeout,
|
||||
ReadTimeout: opt.ReadTimeout,
|
||||
|
Reference in New Issue
Block a user