]> granicus.if.org Git - apache/commitdiff
In ap_send_fb_length() don't treat APR_EOF as a fatal error.
authorBrian Havard <bjh@apache.org>
Mon, 1 Nov 1999 10:50:47 +0000 (10:50 +0000)
committerBrian Havard <bjh@apache.org>
Mon, 1 Nov 1999 10:50:47 +0000 (10:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84081 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index d9f68cb72e0ac0fe392b4887b5bc01f6a2d14ddc..57073b43b84eb8dce747edf854eb53d35985e027 100644 (file)
@@ -2095,7 +2095,7 @@ API_EXPORT(long) ap_send_fb_length(BUFF *fb, request_rec *r, long length)
     while (!ap_is_aborted(r->connection)) {
         rv = ap_bread(fb, buf, sizeof(buf), &n);
         if (n == 0) {
-            if (rv == APR_SUCCESS) {    /* eof */
+            if (rv == APR_SUCCESS || rv == APR_EOF) {    /* eof */
                 (void) ap_rflush(r);
                 break;
             }