From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F0E7C1F87C for ; Mon, 23 Oct 2023 08:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698050920; bh=JvcWeqEu4A0lxdoDjIwGRs/BV90Axgs1x5i5v08BnIk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xN0Wr3r2+Y57odiM4BT/oAwmUWpY6010XtdiVsLr7B1luCZiwGg0LD9X9Bu2Izl5w e+/86VpNDxkvxuzD0vuc9lwL4mg/iTa9o7prM+ys1VIVDxn4JJ480uWKQk28y091U6 opW81ldljl1NHBA8Z/XCVtNwR2P7JkxahCzGlrYU= From: Eric Wong To: spew@80x24.org Subject: [PATCH 13/18] www_altid: switch to psgi_yield Date: Mon, 23 Oct 2023 08:48:32 +0000 Message-ID: <20231023084837.2804687-13-e@80x24.org> In-Reply-To: <20231023084837.2804687-1-e@80x24.org> References: <20231023084837.2804687-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Another drop-in replacement for psgi_return, this once utilizing an unconditional qspawn.filter for gzip. --- lib/PublicInbox/WwwAltId.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PublicInbox/WwwAltId.pm b/lib/PublicInbox/WwwAltId.pm index 47056160..48520142 100644 --- a/lib/PublicInbox/WwwAltId.pm +++ b/lib/PublicInbox/WwwAltId.pm @@ -1,9 +1,9 @@ -# Copyright (C) 2020-2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ # dumps using the ".dump" command of sqlite3(1) package PublicInbox::WwwAltId; -use strict; +use v5.12; use PublicInbox::Qspawn; use PublicInbox::WwwStream qw(html_oneshot); use PublicInbox::AltId; @@ -71,7 +71,7 @@ EOF my $qsp = PublicInbox::Qspawn->new([$sqlite3, $fn], undef, { 0 => $r }); $ctx->{altid_pfx} = $altid_pfx; $env->{'qspawn.filter'} = PublicInbox::GzipFilter->new; - $qsp->psgi_return($env, undef, \&check_output, $ctx); + $qsp->psgi_yield($env, undef, \&check_output, $ctx); } 1;