]> granicus.if.org Git - apache/commitdiff
* Use APR_STATUS_IS_TIMEUP instead of direct compare to APR_TIMEUP to
authorRuediger Pluem <rpluem@apache.org>
Thu, 10 Jun 2010 16:26:53 +0000 (16:26 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 10 Jun 2010 16:26:53 +0000 (16:26 +0000)
  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

modules/filters/mod_reqtimeout.c

index ccf1f8f83f9b40bcfd2ea5bd5c1f86a6ae611ca3..2203b61276f3769f4f408c9abc36221ac43f8789 100644 (file)
@@ -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);
         /*