Added keep-alive support to the http server.

This commit is contained in:
Denis Chaplygin
2019-08-19 15:45:20 +03:00
parent 92c7b6fbd1
commit a0582a3e68
3 changed files with 61 additions and 45 deletions
+1 -5
View File
@@ -103,11 +103,7 @@ boost::asio::const_buffer reply::status_to_buffer(const reply::status_type statu
return boost::asio::buffer(http_bad_request_string);
}
reply::reply() : status(ok)
{
// We do not currently support keep alive. Always set 'Connection: close'.
headers.emplace_back("Connection", "close");
}
reply::reply() : status(ok) {}
}
}
}