New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change session_lock default ini values #350

Merged
merged 2 commits into from Jul 20, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+11 −11
Diff settings

Always

Just for now

Copy path View file
@@ -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
Copy path View file
@@ -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;
ProTip! Use n and p to navigate between commits in a pull request.