tests disabling Nagle

This commit is contained in:
Peter Thorson
2011-12-04 17:53:06 -06:00
parent 7d11168c6b
commit 51a03e401a

View File

@@ -71,10 +71,14 @@ public:
protected:
connection(plain<endpoint_type>& e) : m_socket(e.get_io_service()) {}
void init() {}
void init() {
}
void async_init(socket_init_callback callback) {
// TODO: should this use post()?
m_socket.set_option(boost::asio::ip::tcp::no_delay(true));
callback(boost::system::error_code());
}