facil.io icon indicating copy to clipboard operation
facil.io copied to clipboard

Support for redis UNIX sockets

Open dertuxmalwieder opened this issue 3 years ago • 1 comments

Maybe this is yet another documentation issue, but I'm curious how to connect a facil.io application to a redis socket file - my redis does not have "a port". Is that already supported?

dertuxmalwieder avatar Dec 29 '21 16:12 dertuxmalwieder

Hi @dertuxmalwieder ,

This might be a documentation issue, but it might also be an API issue. I was planning to re-visit the API for fio_connect in 0.8.x and see if I can make it more convenient.

The current documentation indicates that when the port String "0" (or NULL) is used, facil.io will attempt to resolve the address to a Unix socket. This might or might not work.

I know for a fact that I used fio_connect to connect to Unix sockets before, so it should work.

Good luck.

boazsegev avatar Dec 29 '21 17:12 boazsegev