Perl-Toolchain-Gang / HTTP-Tiny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support talking to HTTP services listening on AF_UNIX sockets

teodesian opened this issue · comments

In curl, this is done via the --unix-socket option.

Why is this relevant for perl & HTTP::Tiny in particular?
nginx-unit is a new and quite likely the fastest* (I am still doing benchmarking) PSGI server:
https://unit.nginx.org/configuration/#perl

And it requires all interaction with it to be, you guessed it, via HTTP over AF_UNIX sockets.
This, coupled with it not reloading workers when the parent process recieves SIGHUP from a worker (as is customary in starman, uwsgi, etc) means we have to reach out and touch this socket to live-reload a PSGI application.

I will be looking into writing patches to support this soon; filing now to make the project aware and have the option to say "no" before I work on this.