diff options
| author | Josh Stone <jistone@redhat.com> | 2018-11-30 15:33:40 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2018-11-30 15:33:40 -0800 |
| commit | f107514aef0b25b0d959941df1e45b18a478151b (patch) | |
| tree | 2d82a76865ada6adc5a8a0325c55f1d13c290ba4 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d48ab693d1ce99f30c0cf9abdf45c209824fe825 (diff) | |
| download | rust-f107514aef0b25b0d959941df1e45b18a478151b.tar.gz rust-f107514aef0b25b0d959941df1e45b18a478151b.zip | |
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
