Commit 3460cb95 authored by Greg Williams's avatar Greg Williams
Browse files

Fixed bug in socket wait routine which could cause erroneous retries on fatal errors

parent 88c4b68e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ KineticWaitStatus KineticSocket_WaitUntilDataAvailable(int socket, int timeout)
    {
        return KINETIC_WAIT_STATUS_TIMED_OUT;
    }
    else if ((errno & (EAGAIN | EINTR)) != 0)
    else if ((errno == EAGAIN) || (errno == EINTR))
    {
        return KINETIC_WAIT_STATUS_RETRYABLE_ERROR;
    }