Added connection_parameters to redis and redis.cluster config section in order to allow redis with TLS/SSL#38386
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
|
pls do not forget to add a doc issue in case there is a config.sample change 😄 |
7093a24 to
a9dd9b6
Compare
a9dd9b6 to
81f3e74
Compare
@mmattel done 👍 |
0698987 to
3550fd8
Compare
3550fd8 to
dfd1cf9
Compare
dfd1cf9 to
1cc7d04
Compare
|
@jvillafanez So, I think the error suppression is nonsense, after changing lib/base.php as well, we get now a better error like connection refused instead of redis server went away. Can you have a closer look? |
dd9a869 to
3a8dd4a
Compare
|
@janackermann could you post what you've tested for the change in the lib/base.php to ensure we're not missing anything? The code is executed quite early and I'm not sure if there is any scenario where it could break really bad. Assuming it doesn't give any trouble, the code looks good to me. |
|
@jvillafanez
With Change:
|
|
@jvillafanez If this is a blocker, i will revert the Changes here, as this is not Part of the ticket |
|
We should also check what happens with the command line, ocs and webdav. |
|
Encountered webdav erros which won't happen on master, revert these changes, leave it for now, not context of the issue. Please review again @jvillafanez |
f44aa9f to
1bcd469
Compare
05be01b to
45e4882
Compare
|
Kudos, SonarCloud Quality Gate passed! |
|
Confirmed decent error handling in 10.7.0 RC1
|
Description
Since php-redis 5.3.0 it is possible to pass extra connection parameters as the last argument of Redis::Connect or RedisCluster::constructor.
This arguments can now be defined in the config.php redis.cluser:connection_parameters or redis:connection_parameters.
Due we don't rely on php-redis >= 5.3.0 we check if the extra connection parameters are supported and throw an exception if defined but not supported by the current version.
Related Issue
Types of changes
Checklist: