Christian
0950dfbb8b
Merge pull request #786 from llrosa/debugFixClientId
...
Fix for #785 - Skip client disconnection process if unauthorized
2019-11-03 13:23:23 +01:00
Lucas Rosa
5c25905510
Clean up
2019-10-29 12:48:04 -03:00
Lucas Rosa
e3f6b579b2
Working PoC
2019-10-29 12:32:20 -03:00
Lucas Rosa
c467c9c818
Debugging duplicated client id issue
2019-10-29 11:44:41 -03:00
Christoph Stichlberger
781c5d4d7d
Separate current and reconnect subscsriptions in managed client
...
This change kills several birds with one stone:
- by performing the re-publishing of all subscriptions only at reconnect it fixes issue https://github.com/chkr1011/MQTTnet/issues/569 (retained messages are received again with every new subscription that is added)
- not sending the subscriptions again with every (un)subscription is also a performance improvement if subscriptions are modified on a regular basis, because only the updated subscriptions are sent to the broker (previously, if you had 100 subscriptions and added a new one, 100 suscriptions were re-sent to the broker along with the new one, causing a significant delay)
-until now subscriptions were sent to the broker only every ConnectionCheckInterval which caused unnecessary delays, and for request-response patterns could cause reponse messages to be missed due to the subscription delay. Now (un)subscriptions are published immediately
Subscriptions are now cleaned up at logout (after the connection stops being maintained). This is in line with the clearing of the _messageQueue in StopAsync
Explanatory note: the _subscriptionsQueuedSignal could ideally be a ManualResetEvent(Slim) but those do not offer an awaitable Wait method, so a SemaphoreSlim is used. This possibly causes a few empty loops in PublishSubscriptionsAsync due to the semaphore being incremented with every SubscribeAsync call but all subscriptions getting processed in one sweep, but those empty loops shouldn't be a problem
2019-10-15 15:26:05 +02:00
Christian Kratky
cfcb858423
Update libs.
2019-10-04 19:51:35 +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
Benjamin Crosnier
1a41415dd1
Allow AssignedClientIdentifier in ClientConnected, ClientDisconnected and ConnectedHandler - Fixes chkr1011/MQTTnet#745
2019-08-19 10:41:28 +02:00
Christian Kratky
cf6f0ece0e
Add test execution in build script.
2019-08-18 20:56:26 +02:00
Christian Kratky
50d65f2fed
Update nugets.
2019-08-14 23:06:45 +02:00
JanEggers
a4420063c0
fixed #743
2019-08-14 22:29:51 +02:00
Christian Kratky
2e3cf54f11
Add support for different strategies when generating RPC topics.
2019-08-13 19:53:55 +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
2300e68fff
Add UnitTests for RPC.
2019-08-11 10:41:36 +02:00
Christian Kratky
ab8c7df0b9
Add unit Tests.
2019-07-30 20:35:22 +02:00
Christian Kratky
3d404f9755
Fixed build.
2019-07-23 22:08:51 +02:00
Paul Fake
8eb23f0f1d
Storage queue drain test
...
It's a unit test to ensure the storage queue is drained.
2019-07-23 15:45:50 -04:00
Christian Kratky
dbb227406b
Added UnitTests.
2019-07-17 21:58:37 +02:00
Jan Eggers
4f66614cdd
fixed #691
2019-07-09 14:15:46 +02:00
Christian Kratky
6c8db47e25
Remove dedicated values from contexts and only provide session items.
2019-07-05 18:28:18 +02:00
Christian Kratky
3eb5e82d10
Expose connect packet in application message interceptor and subscription interceptor.
2019-07-04 23:06:37 +02:00
Christian Kratky
c50fb740fc
Add UnitTests.
2019-06-23 12:37:33 +02:00
Christian Kratky
961a497798
Performance refactoring.
2019-06-23 11:32:09 +02:00
Christian Kratky
bd665c3d56
Expose more properties to connection validator context.
2019-06-14 20:37:06 +02:00
Christian Kratky
5a4c735b85
Refactor code.
2019-06-11 20:50:11 +02:00
Christian Kratky
ffc1d950da
Add authorization for MQTTnet.Server
2019-06-09 00:10:26 +02:00
Christian Kratky
1c004ead6d
Add support for altering the TopicFilter in subscription interceptor.
2019-06-07 20:40:24 +02:00
Christian Kratky
b0ad6bda70
Add support for reset of connection statistics. Refactor keep alive monitor.
2019-06-06 21:12:32 +02:00
Christian Kratky
f0be3ef0cf
Add UnitTests.
2019-06-06 20:26:21 +02:00
Christian Kratky
60c6074953
Expose client certificate at MQTT connection validator. Make DualMode optional.
2019-06-06 19:31:43 +02:00
Christian Kratky
5cfb092449
Add UnitTests.
2019-06-06 19:26:43 +02:00
Christian Kratky
a450fc4e01
Add UnitTests.
2019-05-31 09:55:23 +02:00
Christian Kratky
0257e31910
Add UnitTests.
2019-05-27 20:06:51 +02:00
Christian Kratky
2d03c267e4
Expose binary password to MqttConnectionValidatorContext.
2019-05-27 19:57:36 +02:00
Christian Kratky
ccfe67e6a6
Fix wrong password handling (string -> byte[])
2019-05-27 00:21:55 +02:00
Christian
c7d56a78f3
Merge pull request #628 from hezlog/develop
...
Fixed MQTTnet.noUWP.sln build issue.
2019-05-26 23:53:07 +02:00
Christian Kratky
78e504dc2c
Update Wiki samples.
2019-05-26 23:44:42 +02:00
hezlog
9fa9d22097
Fixed MQTTnet.noUWP.sln build issue.
2019-05-20 23:17:32 +08:00
Christian Kratky
d1a17314ef
Add extension library for WebSocket4Net usage.
2019-05-18 09:48:44 +02:00
Christian Kratky
6839970d41
Update UnitTests.
2019-05-14 20:40:58 +02:00
Christian Kratky
c22b6033e3
Accept multiple SubscriptionIdentifiers for PUBLISH packets.
2019-05-12 17:26:36 +02:00
Christian Kratky
12973a4179
Fix issues in MQTTv5 packet encoding and decoding.
2019-05-12 00:18:48 +02:00
Christian Kratky
53ab2ac140
Add Wiki Code.
2019-05-06 20:22:41 +02:00
Christian Kratky
2ecbd83d06
Add UnitTests.
2019-05-06 20:22:20 +02:00
Christian Kratky
cdbdfdec6d
Add UnitTests.
2019-05-01 19:39:10 +02:00
Christian Kratky
9da3377aa7
Fix credential generation.
2019-04-24 20:19:55 +02:00
Christian Kratky
0fec860b25
Add UnitTests.
2019-04-23 14:46:02 +02:00
Christian Kratky
6399172582
Improve connection disposal.
2019-04-22 10:50:47 +02:00