diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-02-22 23:25:15 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2019-03-19 23:35:41 +0300 |
commit | b826234556be01c2cf9494be9b489bc2443c57f5 (patch) | |
tree | 0d5e865d02575bc0295ca93f9cc10e1253ce348f /redis.c | |
parent | c56ffc51b38d27d16760be0d778f50ff5d424b5d (diff) |
Connection limit for pool.
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } } |