]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r411464 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Mon, 24 Nov 2008 11:30:35 +0000 (11:30 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 24 Nov 2008 11:30:35 +0000 (11:30 +0000)
* info->expire and info->date are in microseconds. So convert the difference
  to seconds before comparing it to age which is in seconds.

PR: 39713
Submitted by: Owen Taylor <otaylor redhat.com>
Reviewed by: rpluem, jim, jfclere

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@720171 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/cache/cache_util.c

diff --git a/CHANGES b/CHANGES
index 3546f797ef0f04319975f33d1242303409601ed8..d653b31fbb956f75b2d564c31c8c83c61532e193 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.11
 
+  *) mod_cache: Convert age of cached object to seconds before comparing it to
+     age supplied by the request when checking whether to send a Warning
+     header for a stale response. PR 39713. [Owen Taylor <otaylor redhat.com>]
+
   *) Build: Correctly set SSL_LIBS during openssl detection if pkgconfig is
      not available. PR 46018 [Ruediger Pluem]
 
diff --git a/STATUS b/STATUS
index 4accf166b43c44d0198700a242ff0ffc3a1043af..183c4793b4850b621475d8dbf472f340f77dc88b 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -86,14 +86,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-    * mod_cache: Convert age of cached object to seconds before comparing it to
-      age supplied by the request when checking whether to send a Warning
-      header for a stale response. PR 39713.
-      Trunk version of patch:
-         http://svn.apache.org/viewvc?rev=411464&view=rev
-      Backport version for 2.2.x of patch:
-         Trunk version of patch works
-      +1: rpluem, jim, jfclere
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 78770ffdcdefbefbe045dec2a079cd12bec35a8b..ec2d749b6c7d9f74476169710c816b0d25c932a2 100644 (file)
@@ -351,7 +351,7 @@ CACHE_DECLARE(int) ap_cache_check_freshness(cache_handle_t *h,
         if (!(((smaxage != -1) && age < smaxage) ||
               ((maxage != -1) && age < maxage) ||
               (info->expire != APR_DATE_BAD &&
-               (info->expire - info->date) > age))) {
+               (apr_time_sec(info->expire - info->date)) > age))) {
             /* make sure we don't stomp on a previous warning */
             if ((warn_head == NULL) ||
                 ((warn_head != NULL) && (ap_strstr_c(warn_head, "110") == NULL))) {