Бессонов Дмитрий
b12e3bc611
fix for #762
vor 5 Jahren
Craig Lutgen
d7948afd98
Fix client SslStream certificate chain CRL validation. The logic was inverse and CRLs were never checked.
Add a missing dispose in managed client.
vor 5 Jahren
Christian Kratky
9cc96f1888
Refactor log messages.
vor 5 Jahren
Paul Fake
e1590fc0c8
Fixed storage queue race condition
Sometimes, TryPublishQueuedMessageAsync would try to remove a message from the storage queue before PublishAsync added it to the storage queue, resulting in a message being stuck in the storage queue forever. Switched the message queue lock to an async lock and synchronized the storage queue updates with the message queue updates.
vor 5 Jahren
Christian Kratky
dd96cf98a8
Make storage update for managed client async.
vor 5 Jahren
vbBerni
a9017b8795
handle storage manager null
vor 5 Jahren
vbBerni
f76e130283
fix for failed publishing messages get removed from the message queue but not from the storage manager
vor 5 Jahren
Christian Kratky
7c3d88f62d
Add validation for topics before publishing.
vor 5 Jahren
Christian Kratky
03bfc5f00b
Refactor event handler namings.
vor 5 Jahren
Christian Kratky
8708609498
Add more function mappings for MQTTnet Server.
vor 5 Jahren
vbBerni
2a4eb460da
StopAsync now waits until the managed client is stoped and more typical disposing of internal client
vor 5 Jahren
Dominik Psenner
2000de15e7
Add async handlers for connect and disconnect, too
.. this allows a client to properly async publish on connect.
vor 5 Jahren
Dominik Psenner
a1f414a06d
Add async handler interfaces for connected and disconnected to allow async code to execute on connect
vor 5 Jahren
Berni
de3a39bdc2
Fix Managed Client should dispose inner mqtt client #527
vor 5 Jahren
Christian Kratky
6a2bded181
Refactor session and connection handling in server. Fix QoS level 2 issues.
vor 6 Jahren
Christian Kratky
ebf0e91ab8
Refactor subscribe and unsubscribe to support MQTTv5.
vor 6 Jahren
Christian Kratky
cc113a6c34
Refactor namespaces.
vor 6 Jahren
Christian Kratky
619eaf284d
Add readonly property for client options.
vor 6 Jahren
Christian Kratky
43105f71d8
Refactor removal from blocking queue.
vor 6 Jahren
Paul Fake
2a93fc18e4
Made comparison function static
vor 6 Jahren
Paul Fake
31de6ee186
Delegate comparison function
vor 6 Jahren
Paul Fake
b2c31331b6
Peek-and-publish model
We had been seeing an issue in which the queue could grow larger than the configured cap. I examined the code and saw that this could happen if _mqttClient.PublishAsync() throws an exception, in which case a message can be re-enqueued without honoring the cap. Furthermore, I saw that it was possible for the DropOldestQueuedMessage strategy to drop messages that were not actually the oldest ones, because when re-enqueueing the messages in the queue are no longer ordered by the original time they entered the queue. It made sense to us to peek at the message when publishing rather than dequeue it, so that when re-enqueueing after an exception 1) the cap is still honored and 2) the order of queued messages isn't altered. It's ok if another thread removes the message that's currently being published from the queue due to the cap, because all we have to do then is check if it's already been removed before removing it ourselves.
vor 6 Jahren
Christian Kratky
bddcbf6999
Refactor code.
vor 6 Jahren
Christian Kratky
7181813f12
Fix pending messages overflow strategy issue.
vor 6 Jahren
Christian Kratky
28efbcdb3d
Add max pending messages options for ManagedClient.
vor 6 Jahren
Christian Kratky
682298b69f
Fix issue in pending messages handling for managed client.
vor 6 Jahren
Christoph Stichlberger
80fbb2f0b2
Prevent unsubscription overtaking later subscription
vor 6 Jahren
Christian Kratky
ce534baa75
Move the connection check interval of the ManagedClient to the options.
vor 6 Jahren
Christian Kratky
e8d5bd7bfb
Add new properties and events for the managed client.
vor 6 Jahren
Christian Kratky
bc20850fba
Refactor serializer locking and thread instances.
vor 6 Jahren
Christian Kratky
6192685671
Remove batch sending of messages to prevent message reordering and several required awaits.
vor 6 Jahren
Christian Kratky
20779dfece
Reorganize solution structure.
vor 6 Jahren
Christian Kratky
78360bc24a
Add ID property for the ManagedMqttApplicationMessage.
vor 6 Jahren
Christian Kratky
b05cb0d2ea
Move managed client to separate nuget.
vor 6 Jahren
Christian Kratky
4838da48ef
Replace a manual lock with the lock class.
vor 6 Jahren
Christian Kratky
137d1d181b
Refactor ManagedMqttClientStorage
vor 6 Jahren
JTrotta
f844a8be5e
ManagedMqttClietStorage now works
vor 6 Jahren
Christian
8df8cb1eb6
Refactor logging and add benchmark.
vor 6 Jahren
Christian
af8d1ec6be
Refactoring
vor 6 Jahren
Christian
ec41efd860
Fix client dead lock and protocol version issues.
vor 6 Jahren
Christian
cea984cc2f
Fix stream and socket handling.
vor 6 Jahren
Christian
b3a25fb9e8
Fix subscription handling of _ManagedClient_.
vor 6 Jahren
Christian
c26555aca5
Refactor ManagedClient
vor 6 Jahren
Christian
034e7fd750
Add event for processed application message (managed client only)
vor 6 Jahren
Lassi Laati
2341d66192
Fix ManagedMqttClient missing call to unsubscribe topics
vor 6 Jahren
Christian
c7c84ad39b
Make clients interfaces disposable.
vor 7 Jahren
Christian Kratky
333fc4c387
Fixed an TLS issue in the MqttClientOptionsBuilder; Fix a subscription issue in the managed client.
vor 7 Jahren
Christian Kratky
d12d2648b7
Add extension for RPC calls; replace locks; Refactored storage in Managed Client
vor 7 Jahren
Christian Kratky
69781d822a
Update docs, fix managed client connection issue
vor 7 Jahren
Christian Kratky
f9d67e2cd2
Merge proces, enable signing of the assembly.
vor 7 Jahren