Handle redirect to Unix Domain socket #2750
Unanswered
orodbhen
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a multi-service container application, each of which listens for requests on a unix socket. I'd like to have the client pass all requests to the central service, and have it redirect to the others. but I haven't been able to find a way to do that. When the redirect comes back from the server it raises an
UnsupportedProtocolerror forunix://.I used the
udsparameter forHTTPTransportto establish the initial connection, but I'm not sure if there's a way to add transports dynamically. I've looked at implementing a custom transport, and examined the source code forHTTPTransport, and it seems like this would be very complex.Is there a straightforward way of doing this that I'm not seeing? It would be great to have something like a
UDSTransportclass to handle this scenario.One option would be to use a mount map, and have only the central service use a unix socket, but I'd prefer to have them all do that.
Beta Was this translation helpful? Give feedback.
All reactions