Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@andrewjcg
Copy link

Add http+unix:// URL scheme for connecting to HTTP cache servers via Unix domain sockets, similar to the existing redis+unix:// support.

URL format: http+unix:/path/to/socket?path=/optional/http/path

Add http+unix:// URL scheme for connecting to HTTP cache servers via
Unix domain sockets, similar to the existing redis+unix:// support.

URL format: http+unix:/path/to/socket?path=/optional/http/path
@jrosdahl jrosdahl added the feature New or improved feature label Dec 10, 2025
@jrosdahl
Copy link
Member

Thanks for the PR.

Could you explain your use case for using a local HTTP server over a UNIX domain socket?

@andrewjcg
Copy link
Author

Ahh yeah, so we have some containerized builds where we turn off network access, so this would be to allow bind-mounting in a unix domain socket to allow access a remote cache.

@jrosdahl
Copy link
Member

I see, thanks.

The reason I'm asking is that the next ccache release will include experimental support for #1214. If that works out well, my plan is to remove the built-in HTTP support altogether, so I'm hesitant to add built-in support for http+unix only to remove it again later.

Once the implementation of #1214 is in place, it will be possible to run an HTTP storage helper on the container host and bind-mount its Unix domain socket into the container for similar effect to http+unix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New or improved feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants