mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd::net: Move these temp items here.
This commit is contained in:
parent
f8d3fee8b6
commit
3d5eea0ce3
2 changed files with 9 additions and 10 deletions
|
@ -461,6 +461,15 @@ ircd::handle_request(client &client,
|
|||
std::shared_ptr<ircd::client>
|
||||
ircd::add_client(std::shared_ptr<socket> 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))
|
||||
|
|
10
ircd/net.cc
10
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
|
||||
|
|
Loading…
Reference in a new issue