]> git.lizzy.rs Git - rust.git/commit
test: Tweak tcp-accept-stress one last time
authorAlex Crichton <alex@alexcrichton.com>
Mon, 1 Sep 2014 05:10:45 +0000 (22:10 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 1 Sep 2014 05:14:50 +0000 (22:14 -0700)
commit79f51c1d31a4010c91234768765a4ebb44d8e6ed
tree01d92bdb3d7f816ae12119aa28efce34051967eb
parent5dfb7a6ec1c1b7827a1f019b276c4d959cf2d71e
test: Tweak tcp-accept-stress one last time

The tcp-accept-stress, despite the previous modifications, is still deadlocking
on the osx buildbots. When building/testing/running repeatedly locally, it was
discovered that the test would often fail with TcpStream::connect returning the
error `address not available`.

This test opens up quite a large number of sockets, and it looks like by default
osx isn't the speediest at recycling those sockets for further use.

The test has been modified (and verified) to not deadlock in this error case,
and the test is not just officially ignored on OSX (with no FIXME). I believe
that we'll get good coverage of the relevant code on the linux builders, so this
isn't so much of a loss.

At the same time I turned down the stress parameters to hopefully lighten the
socket load on other platforms.
src/test/run-pass/tcp-accept-stress.rs