Mark Bergsma has submitted this change and it was merged.
Change subject: Use hit_for_pass if object's TTL is <= 0
......................................................................
Use hit_for_pass if object's TTL is <= 0
Test if this is what causes the session/FD leak.
Change-Id: Icf1cb45f1fbabfe7a358492089750773c91fc6da
---
M templates/varnish/mobile-frontend.inc.vcl.erb
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Mark Bergsma: Looks good to me, approved
jenkins-bot: Verified
diff --git a/templates/varnish/mobile-frontend.inc.vcl.erb
b/templates/varnish/mobile-frontend.inc.vcl.erb
index 837b552..ad31d10 100644
--- a/templates/varnish/mobile-frontend.inc.vcl.erb
+++ b/templates/varnish/mobile-frontend.inc.vcl.erb
@@ -97,6 +97,12 @@
if (req.url ~ "mobileaction=" || req.url ~ "useformat=") {
set beresp.ttl = 60 s;
}
+
+ if (beresp.ttl <= 0s) {
+ set beresp.ttl = 120s;
+ return (hit_for_pass);
+ }
+ return (deliver);
}
sub vcl_error {
--
To view, visit https://gerrit.wikimedia.org/r/75127
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Icf1cb45f1fbabfe7a358492089750773c91fc6da
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
Gerrit-Reviewer: Mark Bergsma <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits