aboutsummaryrefslogtreecommitdiff
path: root/tests/net_load_tests
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-12-29 19:58:53 -0500
committerLee Clagett <code@leeclagett.com>2020-12-17 00:36:10 +0000
commit61b6e4cc67abd61a0dbffe271ee3f355b2e772bc (patch)
treeaa63b9684b9138a6f58f18678307d353aec67c10 /tests/net_load_tests
parentMerge pull request #7221 (diff)
downloadmonero-61b6e4cc67abd61a0dbffe271ee3f355b2e772bc.tar.xz
Add aggressive restrictions to pre-handshake p2p buffer limit
Diffstat (limited to 'tests/net_load_tests')
-rw-r--r--tests/net_load_tests/net_load_tests.h2
1 files changed, 2 insertions, 0 deletions
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;
};