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.
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;
}