You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2015/08/28 01:52:47 UTC

trafficserver git commit: [TS-3872] update docs for the new setting.

Repository: trafficserver
Updated Branches:
  refs/heads/master 55d57be2b -> fc6037ef3


[TS-3872] update docs for the new setting.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/fc6037ef
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/fc6037ef
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/fc6037ef

Branch: refs/heads/master
Commit: fc6037ef3f39b2e9551d86a3546c3013f35a791a
Parents: 55d57be
Author: Sudheer Vinukonda <su...@yahoo-inc.com>
Authored: Thu Aug 27 23:52:22 2015 +0000
Committer: Sudheer Vinukonda <su...@yahoo-inc.com>
Committed: Thu Aug 27 23:52:22 2015 +0000

----------------------------------------------------------------------
 doc/reference/configuration/records.config.en.rst | 2 ++
 mgmt/RecordsConfig.cc                             | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc6037ef/doc/reference/configuration/records.config.en.rst
----------------------------------------------------------------------
diff --git a/doc/reference/configuration/records.config.en.rst b/doc/reference/configuration/records.config.en.rst
index bec968b..3b67932 100644
--- a/doc/reference/configuration/records.config.en.rst
+++ b/doc/reference/configuration/records.config.en.rst
@@ -1711,6 +1711,8 @@ all the different user-agent versions of documents it encounters.
    -  ``0`` = default, disable cache and goto origin server
    -  ``1`` = return a 502 error on a cache miss
    -  ``2`` = serve stale if object's age is under :ts:cv:`proxy.config.http.cache.max_stale_age`, else, goto origin server
+   -  ``3`` = return a 502 error on a cache miss or serve stale if object's age is under :ts:cv:`proxy.config.http.cache.max_stale_age`, else, goto origin server
+   -  ``4`` = return a 502 error on either a cache miss or a cache stale
 
 Customizable User Response Pages
 ================================

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc6037ef/mgmt/RecordsConfig.cc
----------------------------------------------------------------------
diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
index d5f6c25..4523700 100644
--- a/mgmt/RecordsConfig.cc
+++ b/mgmt/RecordsConfig.cc
@@ -654,7 +654,7 @@ static const RecordElement RecordsConfig[] =
   //       #  1 - return error if cache miss
   //       #  2 - serve stale until proxy.config.http.cache.max_stale_age, then goto origin, if refresh_miss
   //       #  3 - return error if cache miss or serve stale until proxy.config.http.cache.max_stale_age, then goto origin, if refresh_miss
-  //       #  4 - return error if cache miss or error on stale until proxy.config.http.cache.max_stale_age, then goto origin, if refresh_miss
+  //       #  4 - return error if cache miss or cache stale
   {RECT_CONFIG, "proxy.config.http.cache.open_write_fail_action", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
   ,
   //       #  when_to_revalidate has 4 options: