From: Eric Wong Date: Tue, 11 Feb 2025 03:55:35 +0000 (+0000) Subject: www: mbox: break out of loop on exceptions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=867d53f5d807161cdfca322422a4c13fe55226cd;p=thirdparty%2Fpublic-inbox.git www: mbox: break out of loop on exceptions In case async_mset fails due to resource limitations, ensure we stop trying to make expensive search queries ASAP. --- diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index 17893a090..a5974a399 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -181,6 +181,7 @@ my $refill_ids_cb = sub { # async_mset cb $http = undef unless $ctx->{-really_async}; if ($err) { warn "E: $err"; + $ctx->{-mbox_done} = 1; $ctx->close if $http; # our async httpd return; }