Browse Source

on Windows we have net::error::connection_reset

master
Volker Birk 2 years ago
parent
commit
ed8de2fc8a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      webserver.cc

+ 1
- 1
webserver.cc View File

@ -161,7 +161,7 @@ void Webserver::do_session(tcp::socket *socket)
{
http::request<http::string_body> req;
http::read(*socket, buffer, req, ec);
if (ec == http::error::end_of_stream)
if (ec == http::error::end_of_stream || ec == net::error::connection_reset)
break;
if (ec) {
delete socket;


Loading…
Cancel
Save