From be32bcdc8e84ae7dc091ceeffca2c5d4126f415c Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Sun, 26 Jul 2020 13:03:42 -0700 Subject: Minor refactor for scheduling an async timer. (#854) Small change to the logic introduced in #839 --- hiredis.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hiredis.h') diff --git a/hiredis.h b/hiredis.h index fe2dae4..1a6bf0b 100644 --- a/hiredis.h +++ b/hiredis.h @@ -176,9 +176,10 @@ typedef struct { int type; /* bit field of REDIS_OPT_xxx */ int options; - /* timeout value for connect operation. if NULL, no timeout is used */ + /* timeout value for connect operation. If NULL, no timeout is used */ const struct timeval *connect_timeout; - /* timeout value for commands. if NULL, no timeout is used. (can be set later on with redisSetTimeout/redisAsyncSetTimeout) */ + /* timeout value for commands. If NULL, no timeout is used. This can be + * updated at runtime with redisSetTimeout/redisAsyncSetTimeout. */ const struct timeval *command_timeout; union { /** use this field for tcp/ip connections */ -- cgit v1.2.3