adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
531 stars 128 forks source link

cgi.d: specify a unix socket for fastcgi #315

Closed Ssamm45 closed 2 years ago

Ssamm45 commented 2 years ago

It looks like you can pass --listening-host unix:filename to cgi.d when in embedden_httpd mode but it doesn't work that way when in fastcgi mode.

It looks like you can just pass filename to FCGX_OpenSocket to have it open as unix socket and if you pass host:port it opens it as a tcp socket.

adamdruppe commented 2 years ago

oh cool i didn't know it could do that. I just committed a change without testing, if it works let me know.

Ssamm45 commented 2 years ago

I'll test it when I get home from work

Ssamm45 commented 2 years ago

I tested the code, and after a typo fix it worked great.

adamdruppe commented 2 years ago

sweet. thanks again!