diff options
author | eidheim <eidheim@gmail.com> | 2016-07-31 11:20:45 +0300 |
---|---|---|
committer | eidheim <eidheim@gmail.com> | 2016-07-31 11:21:50 +0300 |
commit | f9cdbb70e03283c22d26c242098cb21eaed79d4e (patch) | |
tree | be621472b407b37ba3865015372013db04794991 /server_wss.hpp | |
parent | bec473af081bc1d45f9ccc7ef0733885033f5145 (diff) |
Added tcp no_delay socket option
Diffstat (limited to 'server_wss.hpp')
-rw-r--r-- | server_wss.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server_wss.hpp b/server_wss.hpp index 46f3d3d..29b3a31 100644 --- a/server_wss.hpp +++ b/server_wss.hpp @@ -36,6 +36,9 @@ namespace SimpleWeb { accept(); if(!ec) { + boost::asio::ip::tcp::no_delay option(true); + connection->socket->lowest_layer().set_option(option); + //Set timeout on the following boost::asio::ssl::stream::async_handshake std::shared_ptr<boost::asio::deadline_timer> timer; if(timeout_request>0) |