From: Ruediger Pluem Date: Thu, 10 Jun 2010 16:26:53 +0000 (+0000) Subject: * Use APR_STATUS_IS_TIMEUP instead of direct compare to APR_TIMEUP to X-Git-Tag: 2.3.6~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c8629d16df4bbac06e9e5726b533345121cfdb0;p=apache * Use APR_STATUS_IS_TIMEUP instead of direct compare to APR_TIMEUP to be more safe on different platforms. Pointed out by: rjung git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953377 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_reqtimeout.c b/modules/filters/mod_reqtimeout.c index ccf1f8f83f..2203b61276 100644 --- a/modules/filters/mod_reqtimeout.c +++ b/modules/filters/mod_reqtimeout.c @@ -262,7 +262,7 @@ static apr_status_t reqtimeout_filter(ap_filter_t *f, apr_socket_timeout_set(ccfg->socket, saved_sock_timeout); out: - if (rv == APR_TIMEUP) { + if (APR_STATUS_IS_TIMEUP(rv)) { ap_log_cerror(APLOG_MARK, APLOG_INFO, 0, f->c, "Request %s read timeout", ccfg->type); /*