summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorAllen.Dou <allen.dou@hotmail.com>2013-04-19 11:26:43 +0800
committerAllen.Dou <allen.dou@hotmail.com>2013-04-19 11:26:43 +0800
commit8d5bc445e53ad4114aaac1dd4ff438b638aecede (patch)
tree954721752933c9aebd10bbe0da8cfd6e9e794c8e /hiredis.h
parent63ce20dd15f83c6ff2bdab1bf3dcd1866e826c71 (diff)
SetKeepAlive
Keep client alive even though no command was sent to server for a long time.
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hiredis.h b/hiredis.h
index aadcf35..a861761 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -88,6 +88,8 @@
#define REDIS_READER_MAX_BUF (1024*16) /* Default max unused reader buffer. */
+#define REDIS_KEEPALIVE_INTERVAL 15 /* seconds */
+
#ifdef __cplusplus
extern "C" {
#endif