diff options
author | Garrett Rooney <rooneg@apache.org> | 2006-09-29 15:48:09 +0200 |
---|---|---|
committer | Garrett Rooney <rooneg@apache.org> | 2006-09-29 15:48:09 +0200 |
commit | d20ce0c6a1d5f82a749977f15a1e029707fa60d7 (patch) | |
tree | 12fd0131cf6e5e1e95816a2c479182cd2559cf94 /modules/generators | |
parent | Follow up to r451287, use APR_STATUS_IS_TIMEUP instead of comparing (diff) | |
download | apache2-d20ce0c6a1d5f82a749977f15a1e029707fa60d7.tar.xz apache2-d20ce0c6a1d5f82a749977f15a1e029707fa60d7.zip |
Follow up to r451006, use APR_STATUS_IS_TIMEUP instead of comparing against
APR_TIMEUP directly.
Reported by: jorton
* modules/generators/mod_cgi.c
(cgi_handler): Use APR_STATUS_IS_TIMEUP.
* modules/generators/mod_cgid.c
(cgid_handler): Ditto.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451289 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators')
-rw-r--r-- | modules/generators/mod_cgi.c | 2 | ||||
-rw-r--r-- | modules/generators/mod_cgid.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index aa46fbed24..2c668c6b58 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -837,7 +837,7 @@ static int cgi_handler(request_rec *r) APR_BLOCK_READ, HUGE_STRING_LEN); if (rv != APR_SUCCESS) { - if (rv == APR_TIMEUP) { + if (APR_STATUS_IS_TIMEUP(rv)) { ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "Timeout during reading request entity data"); return HTTP_REQUEST_TIME_OUT; diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 49b8db5c96..c00feed948 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -1387,7 +1387,7 @@ static int cgid_handler(request_rec *r) APR_BLOCK_READ, HUGE_STRING_LEN); if (rv != APR_SUCCESS) { - if (rv == APR_TIMEUP) { + if (APR_STATUS_IS_TIMEUP(rv)) { ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "Timeout during reading request entity data"); return HTTP_REQUEST_TIME_OUT; |