From 61b6e4cc67abd61a0dbffe271ee3f355b2e772bc Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Tue, 29 Dec 2020 19:58:53 -0500 Subject: Add aggressive restrictions to pre-handshake p2p buffer limit --- tests/net_load_tests/net_load_tests.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/net_load_tests/net_load_tests.h') diff --git a/tests/net_load_tests/net_load_tests.h b/tests/net_load_tests/net_load_tests.h index e7e0ee247..532017efd 100644 --- a/tests/net_load_tests/net_load_tests.h +++ b/tests/net_load_tests/net_load_tests.h @@ -48,6 +48,8 @@ namespace net_load_tests struct test_connection_context : epee::net_utils::connection_context_base { test_connection_context(): epee::net_utils::connection_context_base(boost::uuids::nil_uuid(), {}, false, false), m_closed(false) {} + static constexpr int handshake_command() noexcept { return 1001; } + static constexpr bool handshake_complete() noexcept { return true; } volatile bool m_closed; }; -- cgit v1.2.3