about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-03 07:10:15 +0000
committerbors <bors@rust-lang.org>2018-12-03 07:10:15 +0000
commit25c375413ab8e24b01bef1d80d61dff58ef7bc1c (patch)
treed186d4d1d194d2e35b9fd1fdcfe48459f0075080 /src/libstd/sys/unix/stack_overflow.rs
parenta563ceb3b9471acbb827e27686c5cacadc49a032 (diff)
parentf107514aef0b25b0d959941df1e45b18a478151b (diff)
downloadrust-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