mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-10-04 04:40:55 +02:00
[mqtt-test] cancellation tests from long time ago
Summary: related to T12015 - added some cancellation tests (testing ioc.stop() & client.cancel() - some tests fail and some hang (on windows specifically) Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D26317
This commit is contained in:
@@ -198,6 +198,12 @@ public:
|
||||
_cancel_ping.emit(asio::cancellation_type::terminal);
|
||||
_cancel_sentry.emit(asio::cancellation_type::terminal);
|
||||
|
||||
// cancelling the receive channel invokes all pending handlers with
|
||||
// ec = asio::experimental::error::channel_cancelled
|
||||
// adding another ec to the list of the possible client ecs
|
||||
|
||||
// TODO: close() the channel instead, and open() it on the next run()
|
||||
_rec_channel.cancel();
|
||||
_replies.cancel_unanswered();
|
||||
_async_sender.cancel();
|
||||
_stream.close();
|
||||
|
||||
Reference in New Issue
Block a user