Christian Kratky
2fbb44ec66
Add more property implementations.
pirms 6 gadiem
Christian Kratky
ace25af0e8
Added package properties.
pirms 6 gadiem
Christian Kratky
8d78455414
Fix breaking changes.
pirms 6 gadiem
Paul Fake
a1e258eb24
Check for pending disconnect in ThrowIfNotConnected
This might be a little controversial, but it worked for us to correct a problem in which messages get stuck in the managed client storage queue (and are thrown out of the regular message queue without being published!) in the case of a failed connection. What we were seeing was that ManagedMqttClient.TryPublishQueuedMessage() was discarding a dequeued message without ever removing it from the storage queue because of an OperationCancelledException thrown by MqttClient.PublishAsync(). Tracing the code back, we found that when the connection is interrupted, after the timeout period MqttClient.InitiateDisconnect() would set the cancellation token, and the managed client would continue to try to publish, eventually calling through to MqttClient.SendAndReceiveAsync(), which would throw because the cancellation token is set. Looking back over the code, we saw that MqttClient.PublishAsync() has a call to ThrowIfNotConnected() at the top, which told us that the intent was to not allow this function to be called after a disconnect. But the disconnect was still pending, and the function wasn't behaving correctly in this state, so we reasoned that it's best to throw if the disconnect is pending.
pirms 6 gadiem
Christian Kratky
bddcbf6999
Refactor code.
pirms 6 gadiem
Christian Kratky
7181813f12
Fix pending messages overflow strategy issue.
pirms 6 gadiem
Christian Kratky
6fc9f12c34
Refactor task await.
pirms 6 gadiem
JanEggers
a5caab62f8
fixed parallel writes
pirms 6 gadiem
Christian Kratky
28efbcdb3d
Add max pending messages options for ManagedClient.
pirms 6 gadiem
Christian Kratky
ca7952ab33
Remove wrong setter.
pirms 6 gadiem
Christian Kratky
5abee2512f
Update nuget packages.
pirms 6 gadiem
Christian Kratky
aad3ab903f
Expose retained messages to server interface.
pirms 6 gadiem
JanEggers
73d33e2200
fixed #421
pirms 6 gadiem
JanEggers
b7ab29473b
added ability to specify tls protocol version
pirms 6 gadiem
Christian Kratky
fb4f89b412
Replace TaskCompletionSource in Client with Interlocked gate.
pirms 6 gadiem
Christian Kratky
0c2ab9b231
Fix a deadlock when an exception is fired while connecting.
pirms 6 gadiem
Christian Kratky
03bef4c15d
Fix revocation checks in certificate validator.
pirms 6 gadiem
Christian Kratky
56a1530cee
Add a method for clearing all retained messages at the server.
pirms 6 gadiem
Christian Kratky
70f4dc9e10
Change log level of retained message changes.
pirms 6 gadiem
Andre Crabb
400c0f05ad
* Adds `false` param to Cancel call.
pirms 6 gadiem
Andre Crabb
00df7c9b7b
* More change tabs to spaces.
pirms 6 gadiem
Andre Crabb
a272ed7daa
* Change tabs to spaces.
pirms 6 gadiem
Andre Crabb
b2e7a2e370
Change from logging `Info` to `Verbose`
pirms 6 gadiem
Andre Crabb
39bc70cbf0
* Cancel the TokenSource when disposing or nulling it out for the MqttClient
pirms 6 gadiem
Christian Kratky
682298b69f
Fix issue in pending messages handling for managed client.
pirms 6 gadiem
JanEggers
976c62d9c2
added back the old function and added new overload
pirms 6 gadiem
JanEggers
4cc9f12a03
added AspNetMqttServerOptionsBuilder
pirms 6 gadiem
Christian Kratky
0b5a751c56
Add all methods of the factory to the factory interfaces.
pirms 6 gadiem
Christian Kratky
5a59cd278c
Add serializer adapter.
pirms 6 gadiem
Christoph Stichlberger
80fbb2f0b2
Prevent unsubscription overtaking later subscription
pirms 6 gadiem
Christian Kratky
b4f90decc7
Fix unit tests to allow release builds.
pirms 6 gadiem
Christian Kratky
61b324043a
Refactoring
pirms 6 gadiem
Christian Kratky
2ced921008
Refactoring.
pirms 6 gadiem
Christian Kratky
f70c79aaf9
Refactor options.
pirms 6 gadiem
Christian Kratky
60bc4ebcee
Refactor proxy usage and support. Refactor TLS parameter usage.
pirms 6 gadiem
Christian Kratky
6b9015a928
Fix order of ClientConnected and ClientDisconnected events.
pirms 6 gadiem
Christian Kratky
603639126e
Fix issue in processing of server messages.
pirms 6 gadiem
JanEggers
043cfdb3f9
fixed deadlock and object disposed exception
pirms 6 gadiem
Jens-Christian Skibakk
2b10200101
Small fix for inconsistent client name in log
pirms 6 gadiem
Jens-Christian Skibakk
55e8927ab7
Fix pause/resume of ClientKeepAliveMonitor
pirms 6 gadiem
JanEggers
d30fe61264
fixed missing waits
pirms 6 gadiem
JanEggers
f7ea2d29e1
prove its broken
pirms 6 gadiem
JanEggers
e6cfef5295
fixed disconnect to be triggered just once
pirms 6 gadiem
JanEggers
0dea9e6a2b
changed waiting condition
pirms 6 gadiem
JanEggers
ae80de26ec
addressed feedback
pirms 6 gadiem
JanEggers
53bd2a0960
fixed blocking code in networkstrem and reduced sleep in tests
pirms 6 gadiem
JanEggers
b55f5ff298
event is triggered but something is blocking
pirms 6 gadiem
Jens-Christian Skibakk
740a35b018
Skip build uap10.0 when using dotnet cli
pirms 6 gadiem
Marius Ruginosu
6e995230a7
Created overload methods for WithTls default values
pirms 6 gadiem
Marius Ruginosu
65a8b091b9
Add option to specify the SSLProtocol and CertificateValidationCallback in TLS options, SSLProtocol default is TLS1.2
pirms 6 gadiem