mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 07:46:10 -04:00
add a max levin packet size by command type
This commit is contained in:
parent
00b3502749
commit
3c7eec152c
8 changed files with 60 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue