Korina Šimičević
634a4bdfa9
async_disconnect will close the connection regardless of the current connection state
...
Summary: related to T13761
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D28057
2024-02-22 12:14:24 +01:00
Bruno Iljazovic
c9a7184459
Use properties by reference when validating them.
...
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D27963
2024-02-16 13:49:52 +01:00
Bruno Iljazovic
1acdd99f28
Support multiple subscription identifiers in received messages.
...
Summary:
- refactor property encoding
- change user property type to be std::pair<std::string, std::string>
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D27867
2024-02-16 10:59:07 +01:00
Korina Šimičević
9cb54f73a4
Remove unnecessary casts to unsigned types
...
Summary: related to T12015
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27927
2024-02-15 12:00:42 +01:00
Korina Šimičević
d1d50d029d
Add connection error codes
...
Summary:
related to T13651
- separate code related to reason codes into their own header
- introduce new connection error codes that will be return when a non-recoverable error occurs in connect_op
- add appropriate coverage tests
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27808
2024-02-08 12:27:22 +01:00
Korina Šimičević
d6c4884d53
(Un)subscribe validates the number of topics and reason codes
...
Test Plan:
related to T12015
- (un)subscribe reason codes will always contain as many reason codes as there are topic filters
- if, by some odd chance, the client receives the wrong number of rcs or some are invalid, it will treat it as malformed
- both subscribe_op and unsubscribe_op should be 100% covered by tests now
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27592
2024-01-30 15:25:58 +01:00
Korina Šimičević
85ef3e70e4
Simplify and shorten unit test code - part 2
...
Summary: related to T12015
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27502
2024-01-23 08:50:26 +01:00
Bruno Iljazovic
d78fdd3208
use associated executors for intermediate handlers
...
Summary: * per-operation cancellation changed: total/partial signals only prevent further resending, terminal signal cancels the whole client
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D27246
2024-01-09 16:35:16 +01:00
Korina Šimičević
123e70d8fe
Improved CONNECT & CONNACK property client functions
...
Summary: related to T13427
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27218
2024-01-05 08:03:38 +01:00
Korina Šimičević
bf81ab5ee7
Handle all warnings on MSVC Win32
...
Summary: related to T13409
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27165
2024-01-02 16:04:18 +01:00
Korina Šimičević
794c72cb44
Handle all MSVC warnings
...
Summary: related to T13409
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27152
2024-01-02 11:50:15 +01:00
Korina Šimičević
7c0b9042d1
Allow user to modify CONNECT properties
...
Summary: related to T13332
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27108
2023-12-22 14:07:05 +01:00
Korina Šimičević
99f30b3880
control_packet::wire_data() returns std::string_view
...
Summary: related to T13332
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D27099
2023-12-22 10:52:13 +01:00
Korina Šimičević
97d8a4ea86
Validate control packet size
...
Summary: resolves T13332
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13332
Differential Revision: https://repo.mireo.local/D27000
2023-12-22 10:00:53 +01:00
Korina Šimičević
9af32a942b
Properties & string validation
...
Summary: related to T13318
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26975
2023-12-14 15:29:40 +01:00
Korina Šimičević
b275411ada
Validate subscribe requests
...
Summary: resolves T13305
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13305
Differential Revision: https://repo.mireo.local/D26954
2023-12-14 08:41:04 +01:00
Korina Šimičević
26454e75eb
Topic filter & topic name validation
...
Summary: related to T13170
Reviewers: ivica
Reviewed By: ivica
Subscribers: iljazovic, miljen
Differential Revision: https://repo.mireo.local/D26899
2023-12-13 12:03:52 +01:00
Bruno Iljazovic
e0a0bafbf1
thread-safe client
...
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D26864
2023-12-07 15:16:44 +01:00
Korina Šimičević
e849166599
Downgrade C++ standard requirement to C++17
...
Summary: related to T13242
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26860
2023-12-07 09:50:41 +01:00
Korina Šimičević
64a003e2ed
Do not store ec=session_expired if the client never subscribed
...
Summary: related to T13152
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26803
2023-12-01 15:49:02 +01:00
Korina Šimičević
c18e5fc4f4
topic validation in subscribe, unsubscribe & publish
...
Summary: resolves T13170
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Maniphest Tasks: T13170
Differential Revision: https://repo.mireo.local/D26728
2023-11-29 11:52:16 +01:00
Bruno Iljazovic
f6248eea40
correct tracking executor
...
Summary: - don't resend per-operation cancelled publish and (un)subscribe operations
Reviewers: ivica
Reviewed By: ivica
Subscribers: korina
Differential Revision: https://repo.mireo.local/D26724
2023-11-28 11:04:14 +01:00
Korina Šimičević
d1356b7bb7
[mqtt-client] added completion condition paragraph to async functions
...
Summary: related to T12804
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen, iljazovic
Differential Revision: https://repo.mireo.local/D26421
2023-11-13 08:05:30 +01:00
Korina Šimičević
83493c83d9
[mqtt client&test] #includes housekeeping
...
Summary: resolves T12777
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Maniphest Tasks: T12777
Differential Revision: https://repo.mireo.local/D25995
2023-10-06 12:31:55 +02:00
Korina Šimičević
2d957cd46f
[mqtt-client] boost-like project folder structure
...
Summary: resolves T12767
Reviewers: ivica
Reviewed By: ivica
Subscribers: miljen
Tags: #spacetime
Maniphest Tasks: T12767
Differential Revision: https://repo.mireo.local/D25970
2023-10-05 15:19:18 +02:00