-
Notifications
You must be signed in to change notification settings - Fork 708
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
Implement Unix domain sockets support #52
Conversation
match *addr { | ||
UnixAddr(ref path) => { | ||
if path.exists() { | ||
fs::unlink(path).unwrap(); |
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.
unwrap
will panic if the file can't be unlinked. Is it a good practice to use it in a library?
Leave it up to user to provide non-existent path for bind and provide MioErrorKind::AddrInUse wrapper to better handle possible EADDRINUSE error kind from nix-rust
Curiously on Linux CI box unit test fails because EPOLLOUT flag is set for bound socket that is waiting to accept connections. |
Cool, I am looking forward to this. |
Hey there. I got all the other pending PRs merged in :) |
This looks good at a quick glance (it's late here). I will try to go over this closer tomorrow or monday at the latest and hopefully get it merged in! |
Hi there. I updated the patch to reflect the latest Rust changes and I rebased it into a single commit. Resolved by ff6d5af |
Basic Unix domain socket stream implementation.
I used modified version of TCP echo server for testing(with socket address in temp dir instead of localhost).
Not sure its good enough to be merged so please comment.