Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2016-07-31 11:20:45 +0300
committereidheim <eidheim@gmail.com>2016-07-31 11:21:50 +0300
commitf9cdbb70e03283c22d26c242098cb21eaed79d4e (patch)
treebe621472b407b37ba3865015372013db04794991 /server_wss.hpp
parentbec473af081bc1d45f9ccc7ef0733885033f5145 (diff)
Added tcp no_delay socket option
Diffstat (limited to 'server_wss.hpp')
-rw-r--r--server_wss.hpp3
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)