1
0
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:
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,
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,