about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2018-11-30 15:33:40 -0800
committerJosh Stone <jistone@redhat.com>2018-11-30 15:33:40 -0800
commitf107514aef0b25b0d959941df1e45b18a478151b (patch)
tree2d82a76865ada6adc5a8a0325c55f1d13c290ba4 /src/libstd/sys/unix/stack_overflow.rs
parentd48ab693d1ce99f30c0cf9abdf45c209824fe825 (diff)
downloadrust-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