-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add support for Unix sockets #86
Conversation
Thanks for the PR! I think it's fine to create a sink solely for Unix sockets. |
Thanks for the quick response! This should be ready to review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Few minor changes noted. After addressing them, would you mind rebasing to a single commit before merge? Thanks!
50e2203
to
f85f879
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the updates and squashed the commits.
Awesome, merged! |
Hmm, it seems like this might be the wrong UDS primitive (stream vs datagram). According to these:
...the datagram protocol is used, not the stream protocol. This would mean using Edit: opened #88 |
Yeah, you're correct. I just got ahead of myself. I'll send you the PR tomorrow. |
We report a lot of our stats over Unix sockets, so I'm adding a new sink that will accept UnixStreams instead of UdpSockets. Arguably, it should just accept anything that implements the
Write
trait, which I'm happy to do as that is a pretty small refactoring.Creating the draft PR early mostly for my own edification.