lib/PublicInbox/HTTP.pm | 5 ++++- diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 1346901ad52300fd4b9985c18ba912502ce0f649..a6ec1d0d7388540e2ace1a90ae16751f641297aa 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -174,7 +174,10 @@ } else { response_write($self, $env, $res); } }; - $self->close if $@; + if ($@) { + err($self, "response_write error: $@"); + $self->close; + } } sub response_header_write {