Skip to content

Conversation

BxOxSxS
Copy link
Contributor

@BxOxSxS BxOxSxS commented Apr 20, 2022

As the title says the changes are fixing cargo test on Windows.

I tested it on VM and with CI config from #10 and you can see here that it's working fine

@@ -84,7 +84,7 @@ impl Server {
return Ok(());
}
info!(?port, "new client");
let listener = match TcpListener::bind(("::", port)).await {
let listener = match TcpListener::bind(("0.0.0.0", port)).await {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work even when "::" or Ipv6Addr::UNSPECIFIED is passed in? I wanted to make sure that the server was listening on both Ipv4 and Ipv6 in dual-stack mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not with both. That is why I changed it. At least from my testing ipv6 does no work even before that change but can be my network setup

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks for looking into this and figuring out the issue!

@ekzhang ekzhang merged commit e613629 into ekzhang:main Apr 21, 2022
@BxOxSxS BxOxSxS deleted the windows_test_fix branch April 21, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants