Skip to content

Conversation

@leozelion
Copy link

Connection to Redis that worked on unix socket caused error php_network_getaddresses: getaddrinfo failed: Name or service not known.
Need to check the server address and port, as done in /cache/stores/redis/lib.php:new_redis()

@abias abias force-pushed the main branch 8 times, most recently from a1d0411 to 622f930 Compare October 19, 2025 16:52
Check server address and port for unix socket
@abias
Copy link
Member

abias commented Nov 1, 2025

Hi @leozelion ,

many thanks for your pull request and sorry that it remained unhandled for so long.

I just rebased your PR onto latest main to allow Github actions to check it again.

Looking closer at your patch, I think that it was fine for the time when you submitted it, but comparing it to today's /cache/stores/redis/lib.php:new_redis() code, I think that it needs some further adjustments as Redis cluster support has landed in MDL-63128 in the meantime.

Would you have some more time to have a look at the code and align it to the way how /cache/stores/redis/lib.php:new_redis() works nowadays?
If not, I will try to handle that anytime soon.

Cheers,
Alex

@abias abias mentioned this pull request Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants