]> granicus.if.org Git - apache/commitdiff
One ap_bflush to the client wasn't checked. Now fixed.
authorManoj Kasichainula <manoj@apache.org>
Tue, 26 Oct 1999 22:15:16 +0000 (22:15 +0000)
committerManoj Kasichainula <manoj@apache.org>
Tue, 26 Oct 1999 22:15:16 +0000 (22:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84039 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 66497f188f59f0b1bb3435aef940c51d5313b3fa..39e82db6832a0658625279b3fb7ebee78e330649 100644 (file)
@@ -2072,7 +2072,7 @@ API_EXPORT(long) ap_send_fb_length(BUFF *fb, request_rec *r, long length)
     char buf[IOBUFSIZE];
     long total_bytes_sent = 0;
     long zero_timeout = 0;
-    int n, w, rc, o;
+    int n, w, o;
 
     if (length == 0) {
         return 0;
@@ -2096,7 +2096,9 @@ API_EXPORT(long) ap_send_fb_length(BUFF *fb, request_rec *r, long length)
                 break;
             }
             /* next read will block, so flush the client now */
-            rc = ap_bflush(r->connection->client);
+            if (ap_rflush(r) == EOF) {
+                break;
+            }
 
             ap_bsetopt(fb, BO_TIMEOUT, &r->server->timeout);
             n = ap_bread(fb, buf, sizeof(buf));