Commit 42ef5307 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Move the call to set the socket timeout outside the loop.

ve :


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88168 13f79535-47bb-0310-9956-ffa450edef68
parent aaf63dad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,8 +192,8 @@ void ap_lingering_close(conn_rec *c)
     * which seems to work well), close the connection.
     */
    timeout = SECONDS_TO_LINGER * APR_USEC_PER_SEC;
    for (;;) {
    apr_setsocketopt(c->client_socket, APR_SO_TIMEOUT, timeout);
    for (;;) {
        nbytes = sizeof(dummybuf);
        rc = apr_recv(c->client_socket, dummybuf, &nbytes);
        if (rc != APR_SUCCESS || nbytes == 0) break;