Mark Bergsma has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/75127


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/27/75127/1

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: newchange
Gerrit-Change-Id: Icf1cb45f1fbabfe7a358492089750773c91fc6da
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to