Commit d2229428 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Simplify the lingering close logic a bit. Doesn't actually change

anything, this just removes a duplicate call to ap_flush_conn.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87567 13f79535-47bb-0310-9956-ffa450edef68
parent c2c2d598
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -171,16 +171,14 @@ void ap_lingering_close(conn_rec *c)
     * client has ACKed our FIN and/or has stopped sending us data.
     */

    if (c->aborted) {
    /* Send any leftover data to the client, but never try to again */
    ap_flush_conn(c);

    if (c->aborted) {
        apr_close_socket(c->client_socket);
        return;
    }

    /* Send any leftover data to the client, but never try to again */

    ap_flush_conn(c);

    /* Shut down the socket for write, which will send a FIN
     * to the peer.
     */