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,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 E45801F454 for ; Sun, 8 Oct 2023 01:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1696730311; bh=j14vx27p0cQUhNo6oFkBgZe+mAckTvPBXoRQPr/L/Uk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=mmBq+Gs7fC82wgL5aGydfNNFa0++PL8rFJ0v34Rsc7FhW0ani1TMEUoGJSJ7CI50Q JyIJqZAIW+f+r3iuEj3939lsBrOwgdGMIRFpHjT2pdKYKenzW8qbr4qn7jY0xF18Zs aXUyD9KFjBVtIoLGuOigYpwvtHCZymt5//4iHKDs= Date: Sun, 8 Oct 2023 01:58:30 +0000 From: Eric Wong To: meta@public-inbox.org Subject: Re: [PATCH 3/9] lei: always use async `done' requests to store Message-ID: <20231008015830.M551001@dcvr> References: <20231007212410.297785-1-e@80x24.org> <20231007212410.297785-4-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231007212410.297785-4-e@80x24.org> List-Id: Eric Wong wrote: > diff --git a/lib/PublicInbox/LeiRemote.pm b/lib/PublicInbox/LeiRemote.pm > index 54750062..15013baa 100644 > --- a/lib/PublicInbox/LeiRemote.pm > +++ b/lib/PublicInbox/LeiRemote.pm > @@ -52,7 +52,7 @@ sub mset { > $self->{smsg} = []; > $fh = IO::Uncompress::Gunzip->new($fh, MultiStream => 1); > PublicInbox::MboxReader->mboxrd($fh, \&_each_mboxrd_eml, $self); > - my $wait = $self->{lei}->{sto}->wq_do('done'); > + $self->{lei}->sto_done_request; That's usually not the normal lei/store, but the {tmp_sto} one from LeiRediff. So it must be synchronous in that case because we make multiple queries, there. So I'll revert that hunk. And ugh, the new lei-store-fail.t test is so nasty; I don't think a 100ms delay is enough for some systems... diff --git a/t/lei-store-fail.t b/t/lei-store-fail.t index e9ad779f..fb0f2b75 100644 --- a/t/lei-store-fail.t +++ b/t/lei-store-fail.t @@ -31,7 +31,7 @@ Message-ID: <$_\@t> will this save? EOM } - tick 0.1; # XXX ugh, this is so hacky + tick 0.2; # XXX ugh, this is so hacky # make sto_done_request fail: remove_tree("$ENV{HOME}/.local/share/lei/store");