-
Notifications
You must be signed in to change notification settings - Fork 241
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
Unix domain socket support #465
Comments
@igrishaev Let me put "feature request" tag on this. There are no specific plans, but I've been thinking about extending a list of supported transports for a while. |
And.. yeah, there's an issue already for this :) #212 |
I've managed to get HTTP client to work through the socket with epoll transport here. There's still one thing that bothers me a lot... (def options {:connections-options {:unix-socket "/var/run/docker.sock"}})
(def through-socket (http/connection-pool options))
(http/get "/images/json" {:pool through-socket}) This is a valid request, although it would fail. Because here we would still try to parse a (def options {:connections-options {:unix-socket "/var/run/docker.sock"}})
(def through-socket (http/connection-pool options))
(http/get "http://this-is-dummy-host/images/json" {:pool through-socket}) That's the same problem I also do a substitution of the |
should either of these work in current versions ? |
@kachayev @igrishaev @ztellman what's the status of this pr https://github.com/ztellman/aleph/compare/master...kachayev:ft-unix-socket?expand=1 are we likely to see it merged / what's blocking it ? |
Was this solved with the merged #480 ? Looks like it just needs documentation now? |
Nope, the respective changes for unix domain sockets support were reverted before merge. See #480 (comment) and a9736bf |
Are there any plans on adding interaction with Unix domain sockets?
What I'd like to achieve is to interact with Docker daemon via socket as follows:
As I see it, there should be a separate
unix.clj
module that providesclient
andhandler
functions.I found a small Java example which I'm going to port to Clojure using existing Aleph abstractions. I'm new to Netty so could you at least give me a tip whether that's a good example or not?
The text was updated successfully, but these errors were encountered: