-
Notifications
You must be signed in to change notification settings - Fork 15
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
Provide listen() variant that accepts listener #73
Comments
Hmm, reading the code, it seems that passed sockets are silently listened on. |
It works fine, just listen on You can test it using something like: This issue can be closed. |
It works fine, just listen on `unix:///proc/self/fd/3`.
And to find out that the fd is 3, I use a dice ;)?
|
It's part of systemd socket activation https://www.freedesktop.org/software/systemd/man/latest/systemd-socket-activate.html
|
Listener::new() already records the fact that this listener is actually a connection that has already been established via socket activation. Let Listener::accept() honor that flag. Fixes varlink#73.
I think there is one single piece missing before this issue can be closed. The current I have submitted a pull request, #105, to not invoke Thanks for having implemented the parsing part already, though! |
In order to use systemd socket activation, it would be good to provide a variant of
listen
that, instead of an address string, accepts aListener
.The text was updated successfully, but these errors were encountered: