]> granicus.if.org Git - apache/commitdiff
Simplify the lingering close logic a bit. Doesn't actually change
authorRyan Bloom <rbb@apache.org>
Tue, 2 Jan 2001 17:12:09 +0000 (17:12 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 2 Jan 2001 17:12:09 +0000 (17:12 +0000)
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

server/connection.c

index 8f27f67e8da7ec2232f0f8ac62eed91de774b712..940496d454fbb7f39ff85598dfb1af25497cdc4c 100644 (file)
@@ -171,16 +171,14 @@ void ap_lingering_close(conn_rec *c)
      * client has ACKed our FIN and/or has stopped sending us data.
      */
 
+    /* Send any leftover data to the client, but never try to again */
+    ap_flush_conn(c);
+
     if (c->aborted) {
-        ap_flush_conn(c);
         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.
      */