Skip to content

std: Draw from the same port pool during tests - #22857

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:net-flaky
Feb 27, 2015
Merged

std: Draw from the same port pool during tests#22857
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:net-flaky

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

Instead of allocating the same ports for ipv4 and ipv6 tests, instead draw all
ports from the same pool. Some tests connect to just "localhost" on a particular
port which may accidentally be interacting with other tests as the ipv-what-ness
isn't specified with the string "localhost"

Relevant logs:

Instead of allocating the same ports for ipv4 and ipv6 tests, instead draw all
ports from the same pool. Some tests connect to just "localhost" on a particular
port which may accidentally be interacting with other tests as the ipv-what-ness
isn't specified with the string "localhost"

Relevant logs:

* [Deadlock of the `net::tcp::tests::listen_localhost` test][mac]
* [Failure of the `fast_rebind` test][win1]
* [Failure of `multiple_connect_interleaved_lazy_schedule_ip4`][win2]

[mac]: https://gist.github.com/alexcrichton/349c7ce7c620c1adb2f2
[win1]: https://gist.github.com/alexcrichton/7e3611faae2e1edaee6f
[win2]: https://gist.github.com/alexcrichton/4f5f87749af3ad0f9851
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton

Copy link
Copy Markdown
Member Author

I have not confirmed that this actually fixes anything as I've never been able to reproduce the failures, but it seems prudent and is one of the major differences in the std::old_io::net tests and std::net tests.

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r+ c2400bb p=1

bors added a commit that referenced this pull request Feb 27, 2015
Instead of allocating the same ports for ipv4 and ipv6 tests, instead draw all
ports from the same pool. Some tests connect to just "localhost" on a particular
port which may accidentally be interacting with other tests as the ipv-what-ness
isn't specified with the string "localhost"

Relevant logs:

* [Deadlock of the `net::tcp::tests::listen_localhost` test][mac]
* [Failure of the `fast_rebind` test][win1]
* [Failure of `multiple_connect_interleaved_lazy_schedule_ip4`][win2]

[mac]: https://gist.github.com/alexcrichton/349c7ce7c620c1adb2f2
[win1]: https://gist.github.com/alexcrichton/7e3611faae2e1edaee6f
[win2]: https://gist.github.com/alexcrichton/4f5f87749af3ad0f9851
@bors

bors commented Feb 27, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit c2400bb with merge dd077d5...

@bors

bors commented Feb 27, 2015

Copy link
Copy Markdown
Collaborator

@bors
bors merged commit c2400bb into rust-lang:master Feb 27, 2015
@alexcrichton
alexcrichton deleted the net-flaky branch March 27, 2015 20:41
lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 27, 2026
…vqrvuqs

fix: Handle enum variants in next-solver `generics`
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.

4 participants