diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-31 16:51:59 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-01-03 14:07:45 +0000 |
commit | b652d598d1ed3215150e970dae9673db96c3e39d (patch) | |
tree | a22bdfdc6a465801368931d4e08c46315ae1f764 /tests/net_load_tests/net_load_tests.h | |
parent | Merge pull request #7250 (diff) | |
download | monero-b652d598d1ed3215150e970dae9673db96c3e39d.tar.xz |
add a max levin packet size by command type
Diffstat (limited to 'tests/net_load_tests/net_load_tests.h')
-rw-r--r-- | tests/net_load_tests/net_load_tests.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/net_load_tests/net_load_tests.h b/tests/net_load_tests/net_load_tests.h index 532017efd..baab07d31 100644 --- a/tests/net_load_tests/net_load_tests.h +++ b/tests/net_load_tests/net_load_tests.h @@ -50,6 +50,7 @@ namespace net_load_tests 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; } + size_t get_max_bytes(int command) const { return LEVIN_DEFAULT_MAX_PACKET_SIZE; } volatile bool m_closed; }; |