Sanity tests related to number of packets, packet size & packet priority

Summary:
related to T12015
- add tests related to sending/receiving really big packets
- add tests related to receiving multiple packets at once
- send_big_publish fails in the testing environment, but it works fine in real life

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D27652
This commit is contained in:
Korina Šimičević
2024-02-01 10:35:18 +01:00
parent 33c8eea890
commit 0affdb76f4
7 changed files with 388 additions and 96 deletions

View File

@@ -94,12 +94,16 @@ public:
);
}
void operator()(on_pingreq, error_code) {
void operator()(on_pingreq, error_code ec) {
get_cancellation_slot().clear();
if (_cancellation_state.cancelled() == asio::cancellation_type::terminal)
if (
_cancellation_state.cancelled() == asio::cancellation_type::terminal ||
ec == asio::error::no_recovery
)
return;
_cancellation_state.clear();
perform();
}