You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proxy.config.http.number_of_redirections with hit_stale #7200
In testing ATS 9, one of our properties overrides proxy.config.http.number_of_redirections. When the object is stale in cache, ATS returns the 302 instead of chasing the redirect. It appears very reproducible for the 1 property that uses it.
Activity
ywkaras commentedon Sep 21, 2020
I'm trying to look at this, but am a novice in this area, help welcome.
mlibbey commentedon Sep 22, 2020
There are a few recent commits around this
#6589
#6561
#4962
#4902
perhaps more too...
ywkaras commentedon Sep 23, 2020
I think I've got a simple test that reproduces the problem. Works in 8.1.x but not on master.
ywkaras@7c1545f
ywkaras commentedon Sep 23, 2020
It looks like the change in behavior is due to the added call to HttpTransact::is_cache_hit() is the cause of the change in behavior:
trafficserver/proxy/http/HttpSM.cc
Line 8104 in bd08977
This call is not present in the 8.1.x code:
trafficserver/proxy/http/HttpSM.cc
Line 7959 in 502ee35
ywkaras commentedon Sep 23, 2020
This is the PR that introduced the above change: #4289 . @SolidWallOfCode any insights?