]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
rproxy: remove line context on backend disconnects
authorEric Wong <e@80x24.org>
Sun, 26 Oct 2025 00:04:12 +0000 (00:04 +0000)
committerEric Wong <e@80x24.org>
Mon, 27 Oct 2025 17:40:53 +0000 (17:40 +0000)
It's worthless, especially when using `die' instead of `croak'.
In any case, there's not much we can do if upstream decides to
shut down a partially written stream for whatever reason (e.g.
OOM) so stop giving line information about it.  Adding request
information may be helpful at some point, but that's for another
time.

lib/PublicInbox/H1ReqRes.pm

index ad99a5c77d9a992212c9f4fb306fffc60828bf30..7b28f4d237be8071daa9c47034a5db723a0dd037 100644 (file)
@@ -103,9 +103,9 @@ sub read_err ($$;$) {
                                scalar(@{$self->{wbuf}});
                $self->{res_left} = $len if defined $len;
        } elsif (defined $len) {
-               die "W: upstream terminated while reading response ($len)";
+               die "W: upstream terminated while reading response ($len)\n";
        } else {
-               die 'W: upstream terminated while reading response';
+               die "W: upstream terminated while reading response\n";
        }
        undef;
 }