From: Ruediger Pluem Date: Thu, 28 Sep 2006 20:15:42 +0000 (+0000) Subject: * Notice that reading of the request entity body failed due to a timeout X-Git-Tag: 2.3.0~2113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faacd788d1b62b94d5626d21663724460dc83f80;p=thirdparty%2Fapache%2Fhttpd.git * Notice that reading of the request entity body failed due to a timeout git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451006 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 133e18eb755..aa46fbed24c 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -837,6 +837,11 @@ static int cgi_handler(request_rec *r) APR_BLOCK_READ, HUGE_STRING_LEN); if (rv != APR_SUCCESS) { + if (rv == APR_TIMEUP) { + ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, + "Timeout during reading request entity data"); + return HTTP_REQUEST_TIME_OUT; + } ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "Error reading request entity data"); return HTTP_INTERNAL_SERVER_ERROR; diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 2dc3eca1217..49b8db5c96c 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -1387,6 +1387,11 @@ static int cgid_handler(request_rec *r) APR_BLOCK_READ, HUGE_STRING_LEN); if (rv != APR_SUCCESS) { + if (rv == APR_TIMEUP) { + ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, + "Timeout during reading request entity data"); + return HTTP_REQUEST_TIME_OUT; + } ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "Error reading request entity data"); return HTTP_INTERNAL_SERVER_ERROR;