output/httpd: close client connection on error

This missing piece probably never really hurt, because
HttpdClient::OnSocketClosed() would be called right after a socket
error, but it's better to be explicit about closing on error.
This commit is contained in:
Max Kellermann 2019-04-03 23:24:44 +02:00
parent 380656d8c9
commit 325c7b8e8b
1 changed files with 1 additions and 0 deletions

View File

@ -428,6 +428,7 @@ void
HttpdClient::OnSocketError(std::exception_ptr ep) noexcept
{
LogError(ep);
LockClose();
}
void