From 9dff5105fc01f52437d862bc95d40415f03179f0 Mon Sep 17 00:00:00 2001 From: "Allen.Dou" Date: Tue, 30 Apr 2013 00:11:57 +0800 Subject: Make KeepAlive optional Make Connection KeepAlive being optional instead of default. --- net.h | 1 + 1 file changed, 1 insertion(+) (limited to 'net.h') diff --git a/net.h b/net.h index eb8a0a1..36096fe 100644 --- a/net.h +++ b/net.h @@ -43,5 +43,6 @@ int redisCheckSocketError(redisContext *c, int fd); int redisContextSetTimeout(redisContext *c, struct timeval tv); int redisContextConnectTcp(redisContext *c, const char *addr, int port, struct timeval *timeout); int redisContextConnectUnix(redisContext *c, const char *path, struct timeval *timeout); +int redisKeepAlive(redisContext *c, int interval); #endif -- cgit v1.2.3