Commit bc3cfcb7 authored by Nick Kew's avatar Nick Kew
Browse files

PR#37770: Don't try to use dead backend connection in proxy

(Patch from Olivier BOEL)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@431339 13f79535-47bb-0310-9956-ffa450edef68
parent c9f67b4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -2089,7 +2089,8 @@ static int is_socket_connected(apr_socket_t *sock)
    socket_status = apr_socket_recv(sock, test_buffer, &buffer_len);
    socket_status = apr_socket_recv(sock, test_buffer, &buffer_len);
    /* put back old timeout */
    /* put back old timeout */
    apr_socket_timeout_set(sock, current_timeout);
    apr_socket_timeout_set(sock, current_timeout);
    if (APR_STATUS_IS_EOF(socket_status)) {
    if (APR_STATUS_IS_EOF(socket_status)
        || APR_STATUS_IS_ECONNRESET(socket_status)) {
        return 0;
        return 0;
    }
    }
    else {
    else {