diff options
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | redis.c | 2 | ||||
-rw-r--r-- | redis_session.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/README.markdown b/README.markdown index 71fc973a..c30fd2d3 100644 --- a/README.markdown +++ b/README.markdown @@ -93,7 +93,7 @@ redis.session.locking_enabled = 1 redis.session.lock_expire = 60 ; How long to wait between attempts to acquire lock, in microseconds (µs)?. Defaults to: 20000 redis.session.lock_wait_time = 50000 -; Maximum number of times to retry (-1 means infinite). Defaults to: 1000 +; Maximum number of times to retry (-1 means infinite). Defaults to: 100 redis.session.lock_retries = 2000 ~~~ @@ -103,7 +103,7 @@ PHP_INI_BEGIN() /* redis session */ PHP_INI_ENTRY("redis.session.locking_enabled", "0", PHP_INI_ALL, NULL) PHP_INI_ENTRY("redis.session.lock_expire", "0", PHP_INI_ALL, NULL) - PHP_INI_ENTRY("redis.session.lock_retries", "1000", PHP_INI_ALL, NULL) + PHP_INI_ENTRY("redis.session.lock_retries", "100", PHP_INI_ALL, NULL) PHP_INI_ENTRY("redis.session.lock_wait_time", "20000", PHP_INI_ALL, NULL) PHP_INI_END() diff --git a/redis_session.c b/redis_session.c index 24ed9897..19ae712f 100644 --- a/redis_session.c +++ b/redis_session.c @@ -237,7 +237,7 @@ static int lock_acquire(RedisSock *redis_sock, redis_session_lock_status *lock_s /* Maximum number of times to retry (-1 means infinite) */ retries = INI_INT("redis.session.lock_retries"); if (retries == 0) { - retries = 1000; + retries = 100; } /* How long should the lock live (in seconds) */ |