Skip to content

Commit 85ca1f1

Browse files
committed
This should resolve php-memcached-dev#144
1 parent 7ad95cc commit 85ca1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached_session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int php_memc_sess_lock(memcached_st *memc, const char *key TSRMLS_DC)
5151
if (lock_expire <= 0) {
5252
lock_expire = lock_maxwait;
5353
}
54-
expiration = time(NULL) + lock_expire + 1;
54+
expiration = lock_expire + 1;
5555
attempts = (unsigned long)((1000000.0 / lock_wait) * lock_maxwait);
5656

5757
/* Set the number of write retry attempts to the number of replicas times the number of attempts to remove a server */

0 commit comments

Comments
 (0)