mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #3252
f689a77e
Fix #602 Turn on socket keepalive (Howard Chu)
This commit is contained in:
commit
64fabf2eb7
1 changed files with 3 additions and 0 deletions
|
@ -935,6 +935,9 @@ POP_WARNINGS
|
||||||
boost::bind(&boosted_tcp_server<t_protocol_handler>::handle_accept, this,
|
boost::bind(&boosted_tcp_server<t_protocol_handler>::handle_accept, this,
|
||||||
boost::asio::placeholders::error));
|
boost::asio::placeholders::error));
|
||||||
|
|
||||||
|
boost::asio::socket_base::keep_alive opt(true);
|
||||||
|
conn->socket().set_option(opt);
|
||||||
|
|
||||||
conn->start(true, 1 < m_threads_count);
|
conn->start(true, 1 < m_threads_count);
|
||||||
conn->save_dbg_log();
|
conn->save_dbg_log();
|
||||||
}else
|
}else
|
||||||
|
|
Loading…
Reference in a new issue