summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-21 02:08:18 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-21 02:08:18 +0900
commit332bda83b42d04b8c40e88238cdc24961fe48161 (patch)
tree453202625bfa2f513a454822bac2955bebe4d8ff /src/HttpServerCommand.cc
parentbdd37fe3dee436d815328aedcedba7726c5545d0 (diff)
Enable TCP_NODELAY for WebSocket connection.
Diffstat (limited to 'src/HttpServerCommand.cc')
-rw-r--r--src/HttpServerCommand.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc
index 18aae01c..75abb543 100644
--- a/src/HttpServerCommand.cc
+++ b/src/HttpServerCommand.cc
@@ -163,6 +163,7 @@ bool HttpServerCommand::execute()
httpServer_->feedUpgradeResponse("websocket",
fmt("Sec-WebSocket-Accept: %s\r\n",
serverKey.c_str()));
+ httpServer_->getSocket()->setTcpNodelay(true);
Command* command =
new rpc::WebSocketResponseCommand(getCuid(), httpServer_, e_,
socket_);