mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
Change session_lock default ini values (#350)
This commit is contained in:
committed by
Aaron Stone
parent
b70b82ee4a
commit
549e7c8a3a
@@ -7,16 +7,16 @@
|
||||
; The minimum time, in milliseconds, to wait between session lock attempts.
|
||||
; This value is double on each lock retry until memcached.sess_lock_wait_max
|
||||
; is reached, after which any further retries will take sess_lock_wait_max seconds.
|
||||
; Default is 1000.
|
||||
;memcached.sess_lock_wait_min = 1000;
|
||||
; Default is 150.
|
||||
;memcached.sess_lock_wait_min = 150;
|
||||
|
||||
; The maximum time, in milliseconds, to wait between session lock attempts.
|
||||
; Default is 2000.
|
||||
;memcached.sess_lock_wait_max = 2000;
|
||||
; Default is 150.
|
||||
;memcached.sess_lock_wait_max = 150;
|
||||
|
||||
; The number of times to retry locking the session lock, not including the first attempt.
|
||||
; Default is 5.
|
||||
;memcached.sess_lock_retries = 5;
|
||||
; Default is 200.
|
||||
;memcached.sess_lock_retries = 200;
|
||||
|
||||
; The time, in seconds, before a lock should release itself.
|
||||
; Setting to 0 results in the default behaviour, which is to
|
||||
|
||||
@@ -361,8 +361,8 @@ PHP_INI_BEGIN()
|
||||
|
||||
#ifdef HAVE_MEMCACHED_SESSION
|
||||
MEMC_SESSION_INI_BOOL ("locking", "1", OnUpdateBool, lock_enabled)
|
||||
MEMC_SESSION_INI_ENTRY("lock_wait_min", "1000", OnUpdateLongGEZero, lock_wait_min)
|
||||
MEMC_SESSION_INI_ENTRY("lock_wait_max", "2000", OnUpdateLongGEZero, lock_wait_max)
|
||||
MEMC_SESSION_INI_ENTRY("lock_wait_min", "150", OnUpdateLongGEZero, lock_wait_min)
|
||||
MEMC_SESSION_INI_ENTRY("lock_wait_max", "150", OnUpdateLongGEZero, lock_wait_max)
|
||||
MEMC_SESSION_INI_ENTRY("lock_retries", "5", OnUpdateLong, lock_retries)
|
||||
MEMC_SESSION_INI_ENTRY("lock_expire", "0", OnUpdateLongGEZero, lock_expiration)
|
||||
#if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX < 0x01000018
|
||||
@@ -4271,9 +4271,9 @@ PHP_GINIT_FUNCTION(php_memcached)
|
||||
#ifdef HAVE_MEMCACHED_SESSION
|
||||
|
||||
php_memcached_globals->session.lock_enabled = 0;
|
||||
php_memcached_globals->session.lock_wait_max = 2000;
|
||||
php_memcached_globals->session.lock_wait_min = 1000;
|
||||
php_memcached_globals->session.lock_retries = 5;
|
||||
php_memcached_globals->session.lock_wait_max = 150;
|
||||
php_memcached_globals->session.lock_wait_min = 150;
|
||||
php_memcached_globals->session.lock_retries = 200;
|
||||
php_memcached_globals->session.lock_expiration = 30;
|
||||
php_memcached_globals->session.binary_protocol_enabled = 1;
|
||||
php_memcached_globals->session.consistent_hash_enabled = 1;
|
||||
|
||||
Reference in New Issue
Block a user