Readd support for TCP_NODELAY socket option

This commit is contained in:
leak committed 2014-07-07 21:37:55 +02:00
1 parent 110396447f
commit c7d5660e99
2 files changed
+8 -1

No files matched your search

@@ -33,6 +33,12 @@ public:
AsyncAccept();
};
AsyncAcceptor(boost::asio::io_service& ioService, std::string bindIp, int port, bool tcpNoDelay) :
AsyncAcceptor(ioService, bindIp, port)
{
_socket.set_option(boost::asio::ip::tcp::no_delay(tcpNoDelay));
};
private:
void AsyncAcceptor::AsyncAccept()
{