about summary refs log tree commit homepage
path: root/lib/PublicInbox/ManifestJsGz.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-21 19:41:21 +0000
committerEric Wong <e@80x24.org>2020-12-21 21:51:53 +0000
commit3ce4c38119f13d419bb865a0aa9b66feff339308 (patch)
tree9ad3a1010a1ba402a239507959d7f2ac0c8ed90d /lib/PublicInbox/ManifestJsGz.pm
parentfb7d958dbc601f126dc391d915f5935d4cfc595e (diff)
downloadpublic-inbox-3ce4c38119f13d419bb865a0aa9b66feff339308.tar.gz
/$INBOX/manifest.js.gz should not attempt to match every inbox
in the domain (or every inbox); that is for /manifest.js.gz
(without a /$INBOX prefix).

Fixes: f303b4add8ea1883 ("wwwlisting: avoid hogging event loop")
Diffstat (limited to 'lib/PublicInbox/ManifestJsGz.pm')
-rw-r--r--lib/PublicInbox/ManifestJsGz.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/PublicInbox/ManifestJsGz.pm b/lib/PublicInbox/ManifestJsGz.pm
index 6d5b57ee..e02450fa 100644
--- a/lib/PublicInbox/ManifestJsGz.pm
+++ b/lib/PublicInbox/ManifestJsGz.pm
@@ -99,4 +99,11 @@ sub psgi_triple {
                  'Content-Length', bytes::length($out) ], [ $out ] ]
 }
 
+sub per_inbox {
+        my ($ctx) = @_;
+        # only one inbox, slow is probably OK
+        slow_manifest_add($ctx, $ctx->{ibx});
+        psgi_triple($ctx);
+}
+
 1;