-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
net::tcp::tests::connect_timeout_unroutable can fail with ConnectionRefused #50065
Comments
@ExpHP is your subnet 10.255.255.0/24 or 10.255.0.0/16 or 10.0.0.0/8 or anything similar? You can check by running Either way, the test is ill formed and should be correctled. |
I'm not there right now, but just in case I forget to come back to this, I do recall that the router is accessed through an IP in the 192.168.x.x subnet. (I'm not sure if this precludes the situation you have described) (I wish GitHub notifications had a "mark unread" feature!) |
It appears not to be. wifi
ethernet:
|
I think I must have misread something when making that test - the IP is inside of an address block reserved for private networks which means it could be routable depending on how your network is set up. We could instead use an IP from one of the documentation blocks like 192.0.2.0. |
The address 10.255.255.1 is routable on my vanilla Ubuntu 18.04 box:
The address 192.0.2.0 is not routable:
Therefore, this test always fails on this box. I will file a PR changing it to 192.0.2.0. |
This is a dup of #44698. |
Because the current address is reachable on some machines, which causes the test to fail. Fixes rust-lang#44698, rust-lang#50065.
It requires an unreachable IP address, but there is no such thing, and this has caused it to fail for multiple people. Fixes rust-lang#44698, fixes rust-lang#50065.
…utable, r=sfackler Remove the `connect_timeout_unroutable` test. It requires an unreachable IP address, but there is no such thing, and this has caused it to fail for multiple people. Fixes rust-lang#44698, fixes rust-lang#50065. r? @sfackler
…utable, r=sfackler Remove the `connect_timeout_unroutable` test. It requires an unreachable IP address, but there is no such thing, and this has caused it to fail for multiple people. Fixes rust-lang#44698, fixes rust-lang#50065. r? @sfackler
When I run the
libstd
test suite on campus, I get a failure innet::tcp::tests::connect_timeout_unroutable
:The test says "this IP is unroutable, so connections should always time out," but evidently there's something about the setup at this location that was not anticipated.
The results are the same whether I am connected to WiFi or through ethernet. Both connections go through the same router (a Linksys WRT120N I have physical access to, which doesn't appear to save any sort of logs), and I don't know where it goes after that.
I can work around it by disconnecting from the internet entirely, and do not have issues when running the tests at home (same laptop, different network).
The text was updated successfully, but these errors were encountered: