-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider use over a Unix domain socket #136
Comments
I was just about to open an issue for this. I'm currently using this working branch of |
I am on vacation right now but ill drop a hint at what I think the correct solution should be. We should provide a |
Over at akshayknarayan@02defcd, I've written a temporary hack which addresses this issue in the same way as TLS support - a "unix" feature gate. This relies on https://crates.io/crates/hyper-unix-connector, which is similar to This approach probably should not be merged - in fact, @LucioFranco's suggestion of a |
Change the `connect()` API to lift up the use of `connector()` to `Endpoint::connect()`, allowing users to provide their own implementations (for example, Unix-domain sockets). Any type which impls `tower_make::MakeConnection` is suitable. To avoid breaking the default case of HTTP(S), introduce `connect_with_connector()` and retain `connect()`, which creates the default connector according to the activated feature gate and passes it to `connect_with_connector()`. Fixes: hyperium#136
Change the `connect()` API to lift up the use of `connector()` to `Endpoint::connect()`, allowing users to provide their own implementations (for example, Unix-domain sockets). Any type which impls `tower_make::MakeConnection` is suitable. To avoid breaking the default case of HTTP(S), introduce `connect_with_connector()` and retain `connect()`, which creates the default connector according to the activated feature gate and passes it to `connect_with_connector()`. Fixes: hyperium#136
there's been a bit of churn on hyperlocal. see
what impact does this have on what you're proposing? |
Changes in tonic to allow custom connectors in |
Hey just to update I'd like to get this in tonic for |
As discussed in Discord, it would be useful if Tonic could be used via transports other than TCP sockets - for example a Unix domain socket.
The text was updated successfully, but these errors were encountered: