Christian Kratky
073cd5243f
Update docs. Add UnitTests.
5 years ago
Jimmy Rosenskog
699558e47a
Added exception handling to make sure all tasks are observed to avoid UnobservedTaskException.
5 years ago
Бессонов Дмитрий
15ff03c136
use C#7.0 for default arguments
5 years ago
Бессонов Дмитрий
b12e3bc611
fix for #762
5 years ago
Johan x Lindqvist
61c3e02242
Updated exception message to be in line with other exception messages.
5 years ago
Johan x Lindqvist
5618c4c1f7
Always access the exception property on the task if it has status IsFaulted.
By checking the Exception property it will consider the task exception as handled which means the finalizer won't throw an unhandled task exception.
5 years ago
Johan x Lindqvist
ba9ceed7ce
Use Task.WhenAll to handle errors in both tasks.
Previously if there was an exception in the first task that is awaited the second task would not be awaited.
5 years ago
Johan x Lindqvist
ad1c198e43
Remove if clause that stopped handling of tasks with exceptions.
Now the task is always awaited and thus the exception in the task is handled.
5 years ago
Benjamin Crosnier
1a41415dd1
Allow AssignedClientIdentifier in ClientConnected, ClientDisconnected and ConnectedHandler - Fixes chkr1011/MQTTnet#745
5 years ago
Christian Kratky
2767d897a4
Fix serialization issue of MQTTv5 PubRec packet.
5 years ago
JanEggers
a4420063c0
fixed #743
5 years ago
Christian Kratky
b09f31d654
Fix TCP server adpater when using empty password.
5 years ago
Christian Kratky
2e3cf54f11
Add support for different strategies when generating RPC topics.
5 years ago
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.
5 years ago
Christian Kratky
0cfb8b4020
Remove not async task handling.
5 years ago
Christian Kratky
9ac726b271
Revert "Remove dedicated UWP builds and code."
This reverts commit 6d0e2c2022
.
5 years ago
Christian Kratky
6d0e2c2022
Remove dedicated UWP builds and code.
5 years ago
Christian Kratky
8ad1fb2871
Refactor server certificate classes (breaking change).
5 years ago
Christian Kratky
4a7ff9e9ed
Add TLS certificate password support for MQTTnet.Server.
5 years ago
Christian Kratky
524f695829
Update docs.
5 years ago
Craig Lutgen
59d2a8e551
Changed server crentials property name from password to certificateCredentials
5 years ago
Craig Lutgen
9d63500f95
Fix build issue with UWP
5 years ago
Craig Lutgen
a03bdc7616
Expose server certificate password and client certificate options to MqttServerOptionsBuilder
5 years ago
Christian Kratky
8bfbbd2b29
Refactoring.
5 years ago
Christian Kratky
975eb60e90
Fix memory leak when SSL is not working properly.
5 years ago
Christian Kratky
9cc96f1888
Refactor log messages.
5 years ago
Paul Fake
5c40577bec
Fixed AsyncLock::WaitAsync cancellation bug
There isn't any code in MQTTnet that actually uses a cancellation token in WaitAsync, so this is more of a preventative thing than a bug fix. The original code just checks if the task was completed, not whether it was cancelled. If the process is cancelled immediately before the call to WaitAsync, it'll return as normal (https://referencesource.microsoft.com/#mscorlib/system/threading/SemaphoreSlim.cs,612 ) rather than throw a cancellation exception. This change will ensure we only return the releaser if the wait actually ran to completion rather than exited early due to cancellation. I've tested this, and it properly throws a cancellation exception later on.
5 years ago
Christian Kratky
ed06ea6bc9
Add version information to MQTTnet.Server.
5 years ago
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.
5 years ago
Rudá Cunha
128484c55a
X509Certificate convert to X509Certificate2 in ClientCertificate
5 years ago
Christian Kratky
ff22c34bb2
Add first classes for persisted session support.
5 years ago
Christian Kratky
e7ba3f76dc
Add options builder methods for remote certificate validation callback.
5 years ago
Rudá Cunha
ba8ce15ab4
Add remote certificate validation callback on server
5 years ago
Christian Kratky
4eb2b77138
Fix wrong NoDelay usage in server implementation.
5 years ago
Jan Eggers
4f66614cdd
fixed #691
5 years ago
Christian Kratky
6608172719
MQTTnet.Server: Extend messages API.
5 years ago
Christian Kratky
6c8db47e25
Remove dedicated values from contexts and only provide session items.
5 years ago
Christian Kratky
3eb5e82d10
Expose connect packet in application message interceptor and subscription interceptor.
5 years ago
Christian Kratky
019f428f0a
MQTTnet.Server: Add HTTP API for publishing of messages.
5 years ago
Christian Kratky
8916df8d7b
Move ReuseAddress to server options.
5 years ago
Christian Kratky
b3ab7a1069
Set socket options to allow reusing address.
5 years ago
Christian Kratky
6af58ad90d
Fix MQTTnet.Server startup colors.
5 years ago
Christian Kratky
7a767c7d2f
Improve logging and exception handling when stopping the server.
5 years ago
Christian Kratky
dd96cf98a8
Make storage update for managed client async.
5 years ago
Christian Kratky
6ee3d1640f
Improve logging.
5 years ago
Christian Kratky
6f8272210c
Fix MQTTnet.Server app settings to allow external connections.
5 years ago
Christian Kratky
ce05cc9936
Fix MQTTnet.Server connection validation.
5 years ago
Christian Kratky
985c3084a8
Performance refactoring.
5 years ago
Christian Kratky
961a497798
Performance refactoring.
5 years ago
vbBerni
a9017b8795
handle storage manager null
5 years ago