Christian Kratky
b175119008
Refactoring and doc updates.
2019-10-04 20:01:51 +02:00
Christian Kratky
5fa12649bf
Merge remote-tracking branch 'origin/develop' into develop
2019-10-04 19:51:13 +02:00
Christian
a9a09f4ecd
Merge pull request #754 from jltjohanlindqvist/branches/fixUnhandledTaskCrash
...
Remove if clause that stopped handling of tasks with exceptions
2019-10-04 19:50:56 +02:00
Christian Kratky
3ff5806dbb
Dispose queue in managed client.
2019-10-03 15:26:33 +02:00
Christian Kratky
0ec78cf5cc
Merge remote-tracking branch 'origin/develop' into develop
2019-10-03 15:25:02 +02:00
Christian
c3193c568a
Merge pull request #763 from zawodskoj/master
...
Fix for #762 - thread pool leak
2019-10-03 15:24:56 +02:00
Christian Kratky
a1f02284e9
Merge branch 'master' into develop
2019-10-03 15:23:52 +02:00
Christian Kratky
073cd5243f
Update docs. Add UnitTests.
2019-10-03 15:23:35 +02:00
Jimmy Rosenskog
699558e47a
Added exception handling to make sure all tasks are observed to avoid UnobservedTaskException.
2019-10-03 09:46:40 +02:00
Бессонов Дмитрий
15ff03c136
use C#7.0 for default arguments
2019-09-30 16:10:30 +03:00
Бессонов Дмитрий
b12e3bc611
fix for #762
2019-09-30 16:05:23 +03:00
Johan x Lindqvist
61c3e02242
Updated exception message to be in line with other exception messages.
2019-09-19 13:31:57 +02:00
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.
2019-09-18 13:49:59 +02:00
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.
2019-09-16 11:33:37 +02:00
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.
2019-09-12 09:05:08 +02:00
Benjamin Crosnier
1a41415dd1
Allow AssignedClientIdentifier in ClientConnected, ClientDisconnected and ConnectedHandler - Fixes chkr1011/MQTTnet#745
2019-08-19 10:41:28 +02:00
Christian
22aedcba09
Merge pull request #744 from JanEggers/pr/fix#743
...
fixed #743
2019-08-14 22:53:55 +02:00
Christian Kratky
2767d897a4
Fix serialization issue of MQTTv5 PubRec packet.
2019-08-14 22:45:15 +02:00
JanEggers
a4420063c0
fixed #743
2019-08-14 22:29:51 +02:00
Christian Kratky
b09f31d654
Fix TCP server adpater when using empty password.
2019-08-13 20:07:10 +02:00
Christian Kratky
30c33d46f9
Merge remote-tracking branch 'origin/develop' into develop
2019-08-13 19:56:36 +02:00
Christian Kratky
2e3cf54f11
Add support for different strategies when generating RPC topics.
2019-08-13 19:53:55 +02:00
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.
2019-08-12 17:34:05 -05:00
Christian Kratky
0cfb8b4020
Remove not async task handling.
2019-08-11 22:25:05 +02:00
Christian Kratky
9ac726b271
Revert "Remove dedicated UWP builds and code."
...
This reverts commit 6d0e2c2022 .
2019-08-11 22:19:49 +02:00
Christian Kratky
6d0e2c2022
Remove dedicated UWP builds and code.
2019-08-11 22:07:57 +02:00
Christian Kratky
8ad1fb2871
Refactor server certificate classes (breaking change).
2019-08-11 21:46:13 +02:00
Christian Kratky
4a7ff9e9ed
Add TLS certificate password support for MQTTnet.Server.
2019-08-11 21:45:41 +02:00
Christian Kratky
524f695829
Update docs.
2019-08-09 22:21:42 +02:00
Craig Lutgen
59d2a8e551
Changed server crentials property name from password to certificateCredentials
2019-08-08 13:35:14 -05:00
Craig Lutgen
9d63500f95
Fix build issue with UWP
2019-07-31 13:27:33 -05:00
Craig Lutgen
a03bdc7616
Expose server certificate password and client certificate options to MqttServerOptionsBuilder
2019-07-31 13:04:03 -05:00
Christian Kratky
f3ea7008e5
Merge remote-tracking branch 'origin/develop' into develop
2019-07-30 20:35:39 +02:00
Christian Kratky
8bfbbd2b29
Refactoring.
2019-07-30 20:35:33 +02:00
Christian Kratky
975eb60e90
Fix memory leak when SSL is not working properly.
2019-07-30 20:02:46 +02:00
Christian Kratky
9cc96f1888
Refactor log messages.
2019-07-30 20:01:45 +02:00
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.
2019-07-23 16:20:36 -04:00
Christian
3eac5bcaf3
Merge pull request #709 from PaulFake/patch-1
...
Fixed storage queue race condition
2019-07-23 21:54:21 +02:00
Christian Kratky
ed06ea6bc9
Add version information to MQTTnet.Server.
2019-07-19 19:32:33 +02:00
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.
2019-07-17 16:55:56 -04:00
Christian
1d697e3b87
Merge pull request #702 from rudacs/clientCertificate-is-null
...
X509Certificate convert to X509Certificate2 in ClientCertificate
2019-07-15 19:18:03 +02:00
Rudá Cunha
128484c55a
X509Certificate convert to X509Certificate2 in ClientCertificate
2019-07-15 10:46:45 -03:00
Christian Kratky
ff22c34bb2
Add first classes for persisted session support.
2019-07-12 20:36:46 +02:00
Christian Kratky
e7ba3f76dc
Add options builder methods for remote certificate validation callback.
2019-07-11 23:03:56 +02:00
Christian
1ae3324581
Merge pull request #697 from rudacs/add-server-remove-validation-callback
...
Add remote certificate validation callback on server
2019-07-11 22:56:36 +02:00
Rudá Cunha
ba8ce15ab4
Add remote certificate validation callback on server
2019-07-11 16:28:09 -03:00
Christian Kratky
4eb2b77138
Fix wrong NoDelay usage in server implementation.
2019-07-11 21:11:11 +02:00
Jan Eggers
4f66614cdd
fixed #691
2019-07-09 14:15:46 +02:00
Christian Kratky
6608172719
MQTTnet.Server: Extend messages API.
2019-07-07 21:26:07 +02:00
Christian Kratky
6c8db47e25
Remove dedicated values from contexts and only provide session items.
2019-07-05 18:28:18 +02:00