diff options
| author | bors <bors@rust-lang.org> | 2018-12-03 07:10:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-03 07:10:15 +0000 |
| commit | 25c375413ab8e24b01bef1d80d61dff58ef7bc1c (patch) | |
| tree | d186d4d1d194d2e35b9fd1fdcfe48459f0075080 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | a563ceb3b9471acbb827e27686c5cacadc49a032 (diff) | |
| parent | f107514aef0b25b0d959941df1e45b18a478151b (diff) | |
| download | rust-25c375413ab8e24b01bef1d80d61dff58ef7bc1c.tar.gz rust-25c375413ab8e24b01bef1d80d61dff58ef7bc1c.zip | |
Auto merge of #56394 - cuviper:interrupted-timeout, r=sfackler
Deal with EINTR in net timeout tests
We've seen sporadic QE failures in the timeout tests on this assertion:
assert!(kind == ErrorKind::WouldBlock || kind == ErrorKind::TimedOut);
So there's an error, but not either of the expected kinds. Adding a
format to show the kind revealed `ErrorKind::Interrupted` (`EINTR`).
For the cases that were using `read`, we can just use `read_exact` to
keep trying after interruption. For those using `recv_from`, we have to
manually loop until we get a non-interrupted result.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
