added handshake for dos protection
All checks were successful
Blockstorage/repertory/pipeline/head This commit looks good
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-09-21 11:05:34 -05:00
parent 9c8e96bc5e
commit beff363507

View File

@@ -26,7 +26,7 @@
namespace repertory::comm { namespace repertory::comm {
non_blocking_guard::non_blocking_guard(boost::asio::ip::tcp::socket &sock_) 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; boost::system::error_code err;
[[maybe_unused]] auto ret = sock_.non_blocking(true, err); [[maybe_unused]] auto ret = sock_.non_blocking(true, err);
} }