Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8206b14

Browse files
committed
Enable connection pooling by default
1 parent 95c8aab commit 8206b14

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ before_script:
4646
# but --cluster is an unknown option for travis trusty
4747
- echo yes | ruby redis-trib.rb create --replicas 3 $(seq -f 127.0.0.1:%g 7000 7011)
4848
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
49-
- echo 'redis.pconnect.pooling_enabled = 1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
5049
script:
5150
- php tests/TestRedis.php --class Redis
5251
- php tests/TestRedis.php --class RedisArray

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ PHP_INI_BEGIN()
8484
PHP_INI_ENTRY("redis.clusters.timeout", "0", PHP_INI_ALL, NULL)
8585

8686
/* redis pconnect */
87-
PHP_INI_ENTRY("redis.pconnect.pooling_enabled", "0", PHP_INI_ALL, NULL)
87+
PHP_INI_ENTRY("redis.pconnect.pooling_enabled", "1", PHP_INI_ALL, NULL)
8888
PHP_INI_ENTRY("redis.pconnect.connection_limit", "0", PHP_INI_ALL, NULL)
8989

9090
/* redis session */

0 commit comments

Comments
 (0)