From 0c15754e72d12ae019d3be2976e47e97e893904e Mon Sep 17 00:00:00 2001 From: Manoj Kasichainula Date: Tue, 26 Oct 1999 22:15:16 +0000 Subject: [PATCH] One ap_bflush to the client wasn't checked. Now fixed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84039 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_protocol.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 66497f188f..39e82db683 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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)); -- 2.50.1