haraka / haraka-plugin-redis

redis support for Haraka plugins
https://www.npmjs.com/package/haraka-plugin-redis
MIT License
3 stars 11 forks source link

connecting via socket instead of tcp #26

Closed simon-weber closed 2 years ago

simon-weber commented 4 years ago

Using a unix socket instead of tcp is useful for improving performance on same-machine clients. While it's not documented, it does seem possible to connect via a unix socket with a config like:

[server]
path=/var/run/redis/redis-server.sock
host=ignored
port=ignored

It results in some misleading logging, though:

[INFO] [-] [redis] connected to redis://ignored:ignored

It might be worthwhile to document this and/or change how the logging works.

msimerson commented 4 years ago

Indeed, a PR amending the documentation and the log message is welcome.