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
+3
View File
@@ -65,6 +65,9 @@ class Connection : public std::enable_shared_from_this<Connection>
std::vector<char> compressed_output;
// Header compression_header;
std::vector<boost::asio::const_buffer> output_buffer;
//Keep alive support
bool keep_alive = false;
short processed_requests = 512;
};
}
}