This is an automated email from the ASF dual-hosted git repository.
vmamidi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new a8ec551 Do not do DNS to origin if the object is HIT-STALE and parent
exists
a8ec551 is described below
commit a8ec551a846690fee16c3ed5f502de96ac763c79
Author: Vijay Mamidi <[email protected]>
AuthorDate: Wed Jul 18 19:48:59 2018 -0700
Do not do DNS to origin if the object is HIT-STALE and parent exists
---
proxy/http/HttpTransact.cc | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 993fec5..7a80980 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -2322,16 +2322,7 @@ HttpTransact::HandleCacheOpenReadHitFreshness(State *s)
SET_VIA_STRING(VIA_CACHE_RESULT, VIA_IN_CACHE_STALE);
}
- if (!s->force_dns) { // If DNS is not performed before
- if (need_to_revalidate(s)) {
- TRANSACT_RETURN(SM_ACTION_API_CACHE_LOOKUP_COMPLETE,
- CallOSDNSLookup); // content needs to be revalidated and
we did not perform a dns ....calling DNS lookup
- } else { // document can be served can cache
- TRANSACT_RETURN(SM_ACTION_API_CACHE_LOOKUP_COMPLETE,
HttpTransact::HandleCacheOpenReadHit);
- }
- } else { // we have done dns . Its up to HandleCacheOpenReadHit to decide to
go OS or serve from cache
- TRANSACT_RETURN(SM_ACTION_API_CACHE_LOOKUP_COMPLETE,
HttpTransact::HandleCacheOpenReadHit);
- }
+ TRANSACT_RETURN(SM_ACTION_API_CACHE_LOOKUP_COMPLETE,
HttpTransact::HandleCacheOpenReadHit);
}
///////////////////////////////////////////////////////////////////////////////