diff options
author | Ruediger Pluem <rpluem@apache.org> | 2006-09-28 22:15:42 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2006-09-28 22:15:42 +0200 |
commit | faacd788d1b62b94d5626d21663724460dc83f80 (patch) | |
tree | 1c5c77d2b804ca9dad2e721edd79a7946901d4b9 /modules/generators | |
parent | Minor typo (diff) | |
download | apache2-faacd788d1b62b94d5626d21663724460dc83f80.tar.xz apache2-faacd788d1b62b94d5626d21663724460dc83f80.zip |
* 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
Diffstat (limited to 'modules/generators')
-rw-r--r-- | modules/generators/mod_cgi.c | 5 | ||||
-rw-r--r-- | modules/generators/mod_cgid.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 133e18eb75..aa46fbed24 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 2dc3eca121..49b8db5c96 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; |