httpd: don't bother processing failed connection
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Jun 2020 16:56:10 +0000 (19:56 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 8 Jun 2020 13:50:39 +0000 (16:50 +0300)
commitd3ce853dd6c40681a1ad2f50d05b9f119c4b1a16
treea288d5dc7bcf57483de2a38f1e0934ab21df2249
parent58e9b8a529ebc1dff3cfaa753848237306c465af
httpd: don't bother processing failed connection

If the underlying stream failed, there's no point processing an
outstanding request. It's most likely incomplete, and in any case, we
won't be able to send the response.

That corner case only made sense for connections half-closed on read
end. (Even then, it's a little questionable, because half-closed
connections eventually time out if not fully closed.)
src/network/httpd.c