From c55dd5989cd53099e8c46fa3f90d45dadffd2d21 Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Sun, 14 Apr 2002 19:08:16 +0000 Subject: [PATCH] Oops -- detecting EOF while reading chunked is a protocol violation git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94650 13f79535-47bb-0310-9956-ffa450edef68 --- src/modules/proxy/proxy_util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/proxy/proxy_util.c b/src/modules/proxy/proxy_util.c index c0e685e0f01..9cb255a7ced 100644 --- a/src/modules/proxy/proxy_util.c +++ b/src/modules/proxy/proxy_util.c @@ -560,8 +560,10 @@ long int ap_proxy_send_fb(BUFF *f, request_rec *r, cache_req *c, off_t len, int * not an EBCDIC-CRLF (\r\n). */ if ((ch = ap_bgetc(f)) == EOF) { - /* EOF detected */ - n = 0; + /* Protocol error: EOF detected within chunk */ + n = -1; + ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, r, + "proxy: remote protocol error, eof while reading chunked from proxy"); } else { -- 2.47.2