diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-07-26 13:03:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 13:03:42 -0700 |
commit | be32bcdc8e84ae7dc091ceeffca2c5d4126f415c (patch) | |
tree | de0b76757b42d2811442826c7648366ea1a3c087 /hiredis.h | |
parent | 38b5ae543f5c99eb4ccabbe277770fc6bc81226f (diff) |
Minor refactor for scheduling an async timer. (#854)
Small change to the logic introduced in #839
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |