summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-07-26 13:03:42 -0700
committerGitHub <noreply@github.com>2020-07-26 13:03:42 -0700
commitbe32bcdc8e84ae7dc091ceeffca2c5d4126f415c (patch)
treede0b76757b42d2811442826c7648366ea1a3c087 /hiredis.h
parent38b5ae543f5c99eb4ccabbe277770fc6bc81226f (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.h5
1 files changed, 3 insertions, 2 deletions
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 */