From 3d5eea0ce3c35c2e35d8b02c7a61d2f21ac9590a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 21 Dec 2017 16:13:26 -0700 Subject: [PATCH] ircd::net: Move these temp items here. --- ircd/client.cc | 9 +++++++++ ircd/net.cc | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ircd/client.cc b/ircd/client.cc index d702e9d51..28418d85a 100644 --- a/ircd/client.cc +++ b/ircd/client.cc @@ -461,6 +461,15 @@ ircd::handle_request(client &client, std::shared_ptr ircd::add_client(std::shared_ptr s) { + //ip::tcp::socket &sd(*s); + //sd.non_blocking(false); + + //static const asio::socket_base::keep_alive keep_alive(true); + //sd.set_option(keep_alive); + + //static const asio::socket_base::linger linger{true, 10}; + //sd.set_option(linger); + const auto client { make_client(std::move(s)) diff --git a/ircd/net.cc b/ircd/net.cc index e5c54d795..26d8e5c41 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -422,16 +422,6 @@ noexcept try sock.get(), string(sock->remote())); - //ip::tcp::socket &sd(*sock); - - //static const asio::socket_base::keep_alive keep_alive(true); - //sd.set_option(keep_alive); - - //static const asio::socket_base::linger linger{true, 10}; - //sd.set_option(linger); - - //sd.non_blocking(false); - static const socket::handshake_type handshake_type { socket::handshake_type::server