add a max levin packet size by command type

This commit is contained in:
moneromooo-monero
2021-01-03 14:07:45 +00:00
parent 16c780d568
commit b652d598d1
8 changed files with 60 additions and 4 deletions
+1
View File
@@ -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;
};