-
Notifications
You must be signed in to change notification settings - Fork 743
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
Adds support for UnixStream and UnixListener on Windows #1610
Closed
Closed
Changes from 20 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7f69b97
add first pass implementation of windows uds
sullivan-sean bec570b
modify src/net for windows compatibility
sullivan-sean 63e50c3
fix tests
sullivan-sean 3591238
add docs back in
sullivan-sean 9015ca2
cleanup
sullivan-sean 7265833
remove log statements
sullivan-sean 3884bb5
clean up selector
sullivan-sean 5ca8952
clean up stream and listener sys logic
sullivan-sean 985a145
fix re-registration
sullivan-sean f5ec8ce
add test for serial calls to listener.accept
sullivan-sean cee5c6b
fix serial calls to accept
sullivan-sean 488254d
remove tempfile dependency and fix doc tests
sullivan-sean b6bae73
revert change in draining behavior
sullivan-sean 2113b9f
re-organize stdnet files to mirror std::os::unix::net
sullivan-sean 86c4c9a
use single syscall vectored approach from rust-lang/socket2
sullivan-sean 9f26286
lint
sullivan-sean 09a9b79
improve support across feature matrix
sullivan-sean bb914db
fix doc tests
sullivan-sean 648855d
use bcrypt instead of rand
sullivan-sean 3dd3c0f
add -_ to random char set to avoid rejection sampling
sullivan-sean 2283d39
optimize rng syscall logic
sullivan-sean 569de72
fix lint and fmt
sullivan-sean bdc6933
remove unused functions
sullivan-sean b07b4f1
fmt
sullivan-sean a2831ea
simplify windows mod
sullivan-sean 73d5fae
clean up tests
sullivan-sean 0baf112
fix indentation, imports, address other comments
sullivan-sean d9d4bb3
fmt
sullivan-sean 82b17e8
remove unrelated code changes
sullivan-sean 96e0735
fix lint
sullivan-sean 0e1b6df
remove explicit SetHandleInformation calls
sullivan-sean 77155cc
abstract socketaddr behind common API in net
sullivan-sean 26a060b
fix lint
sullivan-sean fd8ddc1
add comment clarifying inheritance during calls to accept
sullivan-sean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 must be removed. It currently contains the following types:
Incoming
: not used.SocketAddr
: merge this withmio::net::SockAddr
.UnixListener
andUnixStream
: same as above.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.
The
std::net
types are used intests/unix_listener.rs
andtest/unix_stream.rs
for unix, and also accepted as an argument infrom_std
onmio::net::{UnixStream, UnixListener}
. To remove this, I can swap to usingmio::net
for windows tests and makefrom_std
pub(crate)
on windows. Does this sound okay?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.
Hm this doesn't quite work as nicely as I'd hoped since the
std::net
types are blocking and the tests rely on this