mirror of
https://github.com/wownero/wownero-ng.git
synced 2026-10-17 07:31:30 +02:00
add a max levin packet size by command type
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user