From: antirez Date: Tue, 25 Oct 2011 10:10:15 +0000 (+0200) Subject: Lau scripts default max execution time set to 5 seconds. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/8cb8d417b1bc8de33da70b1ae1d5d16b7ada3eba Lau scripts default max execution time set to 5 seconds. --- diff --git a/src/redis.h b/src/redis.h index d77d5b30..d62bd80e 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)))