]> Sergey Matveev's repositories - public-inbox.git/commit
httpd: avoid crash on cgit -> coderepo 404 fallback
authorEric Wong <e@80x24.org>
Fri, 23 Dec 2022 11:05:12 +0000 (11:05 +0000)
committerEric Wong <e@80x24.org>
Fri, 23 Dec 2022 12:44:23 +0000 (12:44 +0000)
commit9ea503ef65426070303fe1929f456b3591d74d93
tree9ff7c77c00f0c665717e4a1ea64710d4eb67c03b
parentf1817699f3f3feb964653eaf3586477abbf7947d
httpd: avoid crash on cgit -> coderepo 404 fallback

A trickled cgit response can cause HTTPD::Async->event_step to
fire an extra time after header parsing.  We need to account for
the lack of async_pass call populating ->{fh} and ->{http} in
that case and avoid calling $self->{fh}->write when there's
no {fh}.
lib/PublicInbox/GitHTTPBackend.pm
lib/PublicInbox/HTTPD/Async.pm