1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-05 20:24:00 +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:
cxljs
2025-08-14 20:48:45 +08:00
committed by GitHub
parent 0b1e9f77ef
commit 97817108dd

View File

@@ -201,8 +201,9 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
MinRetryBackoff: opt.MinRetryBackoff, MinRetryBackoff: opt.MinRetryBackoff,
MaxRetryBackoff: opt.MaxRetryBackoff, MaxRetryBackoff: opt.MaxRetryBackoff,
ReadBufferSize: opt.ReadBufferSize, // The sentinel client uses a 4KiB read/write buffer size.
WriteBufferSize: opt.WriteBufferSize, ReadBufferSize: 4096,
WriteBufferSize: 4096,
DialTimeout: opt.DialTimeout, DialTimeout: opt.DialTimeout,
ReadTimeout: opt.ReadTimeout, ReadTimeout: opt.ReadTimeout,