added handshake for dos protection
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
namespace repertory::comm {
|
||||
non_blocking_guard::non_blocking_guard(boost::asio::ip::tcp::socket &sock_)
|
||||
: sock(sock_), non_blocking(sock_.non_blocking()) {
|
||||
: non_blocking(sock_.non_blocking()), sock(sock_) {
|
||||
boost::system::error_code err;
|
||||
[[maybe_unused]] auto ret = sock_.non_blocking(true, err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user