Skip to content
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

Framework to add support for unix socket protocol #458

Closed
ghost opened this issue May 25, 2016 · 3 comments
Closed

Framework to add support for unix socket protocol #458

ghost opened this issue May 25, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented May 25, 2016

Sort of awkwardly worded title; right now, I would like to be able to use a unix socket to proxy an Iron server through another HTTP server. I know that such an extension is possible, because the crate hyperlocal exists to add Unix socket support to Hyper. Unix sockets are beneficial because they can have permissions to only be read by certain processes.

I'm not 100% sure that the Iron framework would support this as a plugin, because the protocol is currently fixed to just HTTP and HTTPS, as far as I'm aware. If it would be possible to add support to extend this protocol, a plugin could be made to modify Iron to use Unix sockets instead of just TCP.

@sfackler
Copy link
Contributor

You can now provide an arbitrary Hyper Listener to Iron - does that cover this feature request?

@jlesquembre
Copy link

@sfackler could you provide an example about how to use a Listener? I'm also trying to use an unix socket with Iron, but I'm stuck

@phlmn
Copy link
Member

phlmn commented Oct 19, 2018

When 0.7 is released you should be able to use hyperlocal and mount iron as service creator.

@phlmn phlmn closed this as completed Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants