Skip to content

Commit

Permalink
Enable connection pooling by default
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Jun 20, 2019
1 parent 95c8aab commit 8206b14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ before_script:
# but --cluster is an unknown option for travis trusty
- echo yes | ruby redis-trib.rb create --replicas 3 $(seq -f 127.0.0.1:%g 7000 7011)
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo 'redis.pconnect.pooling_enabled = 1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- php tests/TestRedis.php --class Redis
- php tests/TestRedis.php --class RedisArray
Expand Down
2 changes: 1 addition & 1 deletion redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ PHP_INI_BEGIN()
PHP_INI_ENTRY("redis.clusters.timeout", "0", PHP_INI_ALL, NULL)

/* redis pconnect */
PHP_INI_ENTRY("redis.pconnect.pooling_enabled", "0", PHP_INI_ALL, NULL)
PHP_INI_ENTRY("redis.pconnect.pooling_enabled", "1", PHP_INI_ALL, NULL)
PHP_INI_ENTRY("redis.pconnect.connection_limit", "0", PHP_INI_ALL, NULL)

/* redis session */
Expand Down

0 comments on commit 8206b14

Please sign in to comment.