From 8cb8d417b1bc8de33da70b1ae1d5d16b7ada3eba Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 25 Oct 2011 12:10:15 +0200 Subject: [PATCH] Lau scripts default max execution time set to 5 seconds. --- src/redis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.h b/src/redis.h index d77d5b30e..d62bd80e5 100644 --- a/src/redis.h +++ b/src/redis.h @@ -209,7 +209,7 @@ #define REDIS_MAXMEMORY_NO_EVICTION 5 /* Scripting */ -#define REDIS_LUA_TIME_LIMIT 60000 /* milliseconds */ +#define REDIS_LUA_TIME_LIMIT 5000 /* milliseconds */ /* We can print the stacktrace, so our assert is defined this way: */ #define redisAssertWithInfo(_c,_o,_e) ((_e)?(void)0 : (_redisAssertWithInfo(_c,_o,#_e,__FILE__,__LINE__),_exit(1)))