Added custom response stream and possibility to flush response to clients synchronously and asynchronously. Various speed ups, including reduced use of regex and preprocessing of regex objects. boost::asio::ip::tcp::no_delay is now turned on for both Client and Server. Note: Not backward compatible with earlier versions.
This commit is contained in:
parent
79903b6abb
commit
a6154c7c5b
8 changed files with 331 additions and 168 deletions
|
|
@ -38,6 +38,9 @@ namespace SimpleWeb {
|
|||
boost::asio::ip::tcp::resolver::query query(host, std::to_string(port));
|
||||
boost::asio::connect(socket->lowest_layer(), asio_resolver.resolve(query));
|
||||
|
||||
boost::asio::ip::tcp::no_delay option(true);
|
||||
socket->lowest_layer().set_option(option);
|
||||
|
||||
socket->handshake(boost::asio::ssl::stream_base::client);
|
||||
|
||||
socket_error=false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue