Pre briefing:
Although my question is broad on purpose, I am dealing with nginx connecting to php-fpm (fcgi), which is served via a local socket (/tmp/somesocket.socket).
Nginx has a setting to keepalive connections to fcgi backends ( http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_keep_conn ).
This is what my question relates to.
Question:
In linux, when making connection to local sockets, does such a thing as keepalives exist?
Would having a connection kept alive remove (even a tiny bit) some overhead related to creation / teardown of the connection?
Thanks.