From: Garrett Rooney Date: Fri, 29 Sep 2006 13:48:09 +0000 (+0000) Subject: Follow up to r451006, use APR_STATUS_IS_TIMEUP instead of comparing against X-Git-Tag: 2.3.0~2109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d20ce0c6a1d5f82a749977f15a1e029707fa60d7;p=apache 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 --- 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;