Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with EINTR in net timeout tests #56394

Merged
merged 1 commit into from
Dec 3, 2018

Commits on Nov 30, 2018

  1. 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.
    cuviper committed Nov 30, 2018
    Configuration menu
    Copy the full SHA
    f107514 View commit details
    Browse the repository at this point in the history