Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-02-22 23:25:15 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-03-19 23:35:41 +0300
commitb826234556be01c2cf9494be9b489bc2443c57f5 (patch)
tree0d5e865d02575bc0295ca93f9cc10e1253ce348f /redis.c
parentc56ffc51b38d27d16760be0d778f50ff5d424b5d (diff)
Connection limit for pool.
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/redis.c b/redis.c
index eaeaf1ce..4cbc451d 100644
--- a/redis.c
+++ b/redis.c
@@ -85,6 +85,7 @@ PHP_INI_BEGIN()
/* redis pconnect */
PHP_INI_ENTRY("redis.pconnect.pooling_enabled", "0", PHP_INI_ALL, NULL)
+ PHP_INI_ENTRY("redis.pconnect.connection_limit", "0", PHP_INI_ALL, NULL)
/* redis session */
PHP_INI_ENTRY("redis.session.locking_enabled", "0", PHP_INI_ALL, NULL)
@@ -719,7 +720,8 @@ static void add_class_constants(zend_class_entry *ce, int is_cluster TSRMLS_DC)
static ZEND_RSRC_DTOR_FUNC(redis_connections_pool_dtor)
{
if (res->ptr) {
- zend_llist_destroy(res->ptr);
+ ConnectionPool *p = res->ptr;
+ zend_llist_destroy(&p->list);
pefree(res->ptr, 1);
}
}