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 C9F6A1FA3D for ; Wed, 25 Oct 2023 00:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698193791; bh=DrficFuyrthBehNAVZ67zpqSvU9yDX96ra2LKY5SQeM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QVHekpJovPXl8fk+wZcz37CRcWBpfYrKHenvpuQJXeAJd186wwUnlmzaZxac2u7+G oegIvqXbxL3NB7Hd6FFWqYMleclc5XpakclnKQ7U6Ly+KgaVGN2XioUMYK5QaFeYng Nvhi+mvy3B2cv5PGEBbDyJmLRZ3KtE3U1pf/DyoY= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 13/26] www_altid: switch to psgi_yield Date: Wed, 25 Oct 2023 00:29:36 +0000 Message-ID: <20231025002949.3092193-14-e@80x24.org> In-Reply-To: <20231025002949.3092193-1-e@80x24.org> References: <20231025002949.3092193-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Another drop-in replacement for psgi_return, this one notably utilizing an unconditional qspawn.filter for gzip unlike the others. --- 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;