summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-03-27 16:34:45 +0100
committerantirez <antirez@gmail.com>2020-03-27 16:35:03 +0100
commitdd7e61d77f8e74b2d502965cf43df8034cd7923e (patch)
treef5d1ac7e99e3d50f360752fcfaa4cafb4f9dda11 /src/server.h
parent0e22cb2680db9f87fd232bc54419d538629edc2d (diff)
downloadredis-dd7e61d77f8e74b2d502965cf43df8034cd7923e.tar.gz
timeout.c created: move client timeouts code there.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index a3d91a09e..691f47c48 100644
--- a/src/server.h
+++ b/src/server.h
@@ -2138,8 +2138,12 @@ void disconnectAllBlockedClients(void);
void handleClientsBlockedOnKeys(void);
void signalKeyAsReady(redisDb *db, robj *key);
void blockForKeys(client *c, int btype, robj **keys, int numkeys, mstime_t timeout, robj *target, streamID *ids);
+
+/* timeout.c -- Blocked clients timeout and connections timeout. */
void addClientToTimeoutTable(client *c);
void removeClientFromTimeoutTable(client *c);
+void handleBlockedClientsTimeout(void);
+int clientsCronHandleTimeout(client *c, mstime_t now_ms);
/* expire.c -- Handling of expired keys */
void activeExpireCycle(int type);