Victornor and christian
981ea02149
Unused parameter in WithTryPrivate causing client to send incorrect version byte in header. ( #2125 )
...
* fix: unused tryPrivate parameter in WithTryPrivate
* Fix wrong usage of try private
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-12-10 19:37:29 +01:00
老九 and christian
8089c6bdbc
Added EndPoint RemoteEndPoint {get;} property to channel ( #2111 )
...
* Added EndPoint RemoteEndPoint{get;} property
* Reformat code
* Reformat code
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-12-02 11:52:24 +01:00
老九
6bf2b4eaca
Cannot set any properties of tcpOptions when with WebSocketServer. ( #2118 )
2024-12-02 10:24:03 +01:00
老九
6ef6b57064
Improve the compatibility of MqttClientOptionsBuilder.WithConnectionUri() ( #2107 )
...
* Improve the compatibility of MqttClientOptionsBuilder.WithConnectionUri() method.
* Force UseTls to true for secure schemes.
* Add support for UnixDomainSocket.
2024-12-01 14:10:58 +01:00
老九
bdb74642c2
MqttClientFactory: Fix CreateLowLevelMqttClient not using method parameters ( #2110 )
...
* Fix CreateLowLevelMqttClient not using method parameters.
* Remove UseClientAdapterFactory()
2024-11-30 13:46:36 +01:00
Andrea Vouk
63d85184e1
Convert null checks to modern ThrowIfNull checks ( #2089 )
...
Convert null check to modern ThrowIfNull checks
2024-10-26 11:41:58 +02:00
Christian
81a4e7cb86
Pass cancellation token to TCP listeners ( #2082 )
2024-09-15 16:08:21 +02:00
Christian
2fdbb02dc8
Fix parsing error of AUTH packet with empty body ( #2070 )
...
* Reformat code
* Fix issue
* Fix AUTH packet serialization
2024-09-07 09:49:10 +02:00
christian
bda21f0fcd
Fix build errors
2024-08-24 12:04:14 +02:00
980a5d0a6d
Improve performance and drop support for old frameworks ( #2068 )
...
* Remove WebSocket4Net extension library
* Remove UWP support
* Drop support for all old frameworks
* Update CI
* Update CI
* Update CI
* Update CI
* Remove obsolete code
* Set default protocol version to 5.0.0
* Remove obsolete tests
* Remove old dependencies
* Reset release notes
* Move server to dedicated project
* Fix unit tests
* Update and cleanup nuget packages
* Fix unit tests
Refactor code
* No longer throw exception when receiving non success CONNACK
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable code signing
* Enable code signing
* Enable code signing
* Fix client endpoint handling
* Improve CI
* Fix CI
* Fix CI
* Fix CI
* Fix CI
* Import changes from version 4
* Cleanup target frameworks and remove obsolete code
* Drop support for dotnet7.0
* Remove managed client
* Version5 auditmode (#2016 )
Added NuGet audit mode and some other settings to get informed about security issues.
* Address warnings from analyzers
* Support for ReadOnlySequence as payload (#2046 )
* use ReadOnlySequence as payload
* fix build
* fix build
* skip sign in forks
* remove unnecessary owner
* tests and extensions
* remove test
* simplify WritePacketBuffer, remove unused helper
* Adjust namespaces
* Fix build errors
* Import latest fixes from main branch
* Adjust namespaces
---------
Co-authored-by: SeppPenner <HansM2013@gmx.de >
Co-authored-by: Martin Regen <mregen@microsoft.com >
2024-08-24 11:47:21 +02:00
Christian
25c1da6a21
Restore behavior of _Server_ and _Port_ in client options ( #2009 )
...
* Restore old server and port behavior
* Fix unit test
2024-05-23 19:32:22 +02:00
Christian
290419b3b6
[Client] Fix endpoint handling ( #1999 )
...
* Fix endpoint handling
* Fix different behavior for Mono framework.
* Restore old properties to avoid breaking changes
2024-05-19 12:18:12 +02:00
Christian
3a73ec21f7
[Client] Restore _WithConnectionUri_ methods ( #1998 )
...
Remove obsolete attributes
2024-05-17 17:49:33 +02:00
Christian
41d5b70344
Fix support for unix sockets ( #1995 )
...
* Add support for changing the protocol type on socket level
* Do not set NoDelay when not supported by protocol
* Update release notes
* Fix release notes
2024-05-14 18:09:33 +02:00
yzt and Christian
b4769778af
DISCONNECT packet should allow zero-length body ( #1994 )
...
* DISCONNECT packet should allow zero-length body
> [If the Remaining Length is less than 1 the value of 0x00 (Normal disconnection) is used.](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901208 )
* Update release notes and add comment
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2024-05-14 18:08:54 +02:00
christian
f4b2a10616
Fix build errors and several warnings
2024-05-09 18:39:08 +02:00
ed63aa4910
Fix comment typos/text, refactor if-else chains to switch statements, optimize return statements, and invert conditional logic ( #1961 )
...
* Fix comment typos and refactor if-else chains to switch statements.
* Refactor code
---------
Co-authored-by: Wilmar Arias <wilmar.arias@keylinx.se >
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-05-09 18:21:00 +02:00
fazho and christian
abbf14b1ec
rethrow MqttClientUnexpectedDisconnectReceivedException when Publish … ( #1974 )
...
* rethrow MqttClientUnexpectedDisconnectReceivedException when Publish errors out because server disconnects the client and QoS is 0
* use a local var to cache _unexpectedDisconnectPacket
* Add inner exception to new exception
* Update release notes
* set the default inner exception as null
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-05-07 18:31:16 +02:00
Christian
4f9e54ba1d
Expose certificate selection in client options ( #1984 )
...
* Expose certificate selection in MQTTnet options
* Fix .NET Framework builds
* Update release notes
2024-05-02 22:05:33 +02:00
Christian
4ab956abd1
Change behavior of NoMatchingSubscribers ( #1975 )
...
Change behavior of NoMatchingSubscribers.
2024-04-26 18:35:39 +02:00
Guiorgy
b7328e5fd2
fixed a comment typo ( #1973 )
2024-04-23 20:09:39 +02:00
Marc Piulachs and Christian
b763542329
Move "Client is not connected" error to it's own exception ( #1954 )
...
* Move "Client is not connected" error to it's own exception
* Update MqttClientNotConnectedException.cs
* Update release notes
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2024-04-09 21:26:59 +02:00
yzt and Christian
1ffffaff47
Fix minor bug in MqttV5PacketEncoder.cs ( #1939 )
...
* Fix minor bug in MqttV5PacketEncoder.cs
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2024-03-02 09:44:14 +01:00
Christian
c204f6d8b2
Make packet inspector fully async ( #1941 )
...
* Make packet inspector methods async.
* Update release notes
2024-03-02 09:28:56 +01:00
Christian
c12096705f
1908 support unix domain sockets ( #1919 )
...
* Add support for custom endpoints
Add overlaods etc. to allow for passing other endpoint implementations
* Extend publich broker test to also probe with different protocol versions
* Fix UWP build
* Update ReleaseNotes.md
2024-02-06 17:37:07 +01:00
Christian
eb25500f50
1889 no service for type mqttnetservermqttserver has been registered ( #1892 )
...
* Add missing service to service collection
* Update ReleaseNotes.md
* Restore service registrations
2023-12-08 18:01:19 +01:00
Christian
4df06980a1
1883 in a weak network environment the mqtt broker is unable to detect disconnections ( #1891 )
...
* Add new setting
* Align keep alive handling with RFC
Only completely sent packets are treated as keep alive
* Update ReleaseNotes.md
2023-12-07 17:49:03 +01:00
kallayj and Christian
09ab30fb0f
Adds events for delivered and dropped messages. ( #1866 )
...
* Adds events for delivered and dropped messages.
* Rename new events to match other namings
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-12-06 18:02:48 +01:00
Christian
ae84aa43d2
1846 server mqttserverstopasync doesnt indicate correct reason ( #1872 )
2023-11-25 16:17:16 +01:00
Rido and Christian
b431a5d3fe
Add ReasonCode to SendExtendedAuthenticationExchangeDataAsync ( #1882 )
...
* add reason code to ext auth
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-11-25 15:45:10 +01:00
Christian
b9683c2943
Improve client disconnect ( #1873 )
...
Imrpove client disconnect
2023-11-05 15:15:36 +01:00
Christian
ec637f7946
Handle unobserved tasks exceptions ( #1871 )
...
* Access exception so that it will not treated as unhandled
* Refactor code
* Improve unit tests
* Fix null reference exception
* Update ReleaseNotes.md
2023-11-04 13:39:16 +01:00
Christian
2599b3dfdc
Update settings for tests project so that it will build on linux ( #1860 )
...
* Update settings for tests project so that it will build on linux
* Improve unit tests and samples
* Remove no longer required target frameworks for unit tests
* Update ci.yml
2023-11-01 09:34:18 +01:00
Christian
d22caa7b70
Update readme ( #1870 )
...
* Update ReleaseNotes.md
* Apply project code style
2023-11-01 09:26:18 +01:00
Rido
01c90badf9
Support custom CA chain validation ( #1851 )
...
* Add CaFile based on SslStream CustomTrust
* change to cert collection
* do not require to disable revocation checks
2023-11-01 09:22:13 +01:00
Diego2098 and Christian
e4f605fbd5
Update MqttServer.cs ( #1858 )
...
* Update MqttServer.cs
clientID is null => RetainedMessageChangedEventArgs ctor throw new ArgumentNullException(nameof(clientId)
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-11-01 08:29:19 +01:00
Christian
6fdee9e0db
Fix wrong TLS usage ( #1833 )
...
* Fix wrong usage of TLS options
* Fix public broker tests
* Update ReleaseNotes.md
2023-09-06 20:08:35 +02:00
Christian
cae7206733
Fix NullReferenceException when calling Ping ( #1834 )
...
* Check connection status before doing ping
* Fix broken reconnect sample
* Update ReleaseNotes.md
2023-09-06 20:08:13 +02:00
Tomáš Jecha
e0660ba887
#1810 Close connection after failed connect. ( #1811 )
2023-09-01 18:58:36 +02:00
Christian and Sean Hanna
111a0d69cf
Add support for hot reloading of client certificates ( #1783 )
...
* Refactor Unit Tests
* Add new certificate provider interface instead of read only certificates list.
* Update ReleaseNotes.md
* Fix Unit Tests
* Fix build
* unit testing hot swappable certificates (#1787 )
* Move test classes to correct namespace
* Apply code style
---------
Co-authored-by: Sean Hanna <hannasm@users.noreply.github.com >
2023-08-19 15:14:05 +02:00
troky and Christian
1a08ec17ba
Added certificate validation callback for .NET framework 4.x ( #1806 )
...
* Added certificate validation callback for .NET framework 4.x
* Update ReleaseNotes.md
* Also expose sender to event arguments
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-08-19 14:20:01 +02:00
Ramon Smits and Christian
c537d290c3
Only logging "Client will now throw an _MqttConnectingFailedException_." warning when actually throwing the exception ( #1801 )
...
* Warning was always logged
Warning was always logged while the text states it would throw a `MqttConnectingFailedException` exception
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-08-19 13:59:14 +02:00
Ramon Smits and Christian
b1dc8607af
Moved check on Options.ValidateFeatures below ThrowIf methods to prevent NullReferenceException ( #1800 )
...
* Moved check on Options.ValidateFeatures below ThrowIf methods to prevent NullReferenceException
* Add Unit Test
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-08-13 18:38:37 +02:00
simonthum
101898695e
Add will message expiry interval to builder ( #1804 )
...
This was missing from builder but not regular options.
2023-08-13 18:06:16 +02:00
Christian
9295626503
[Server] Add initial support for session expiration ( #1776 )
2023-06-27 19:32:08 +02:00
Christian
18614d4e81
Expose configuration of packet fragmentation in server options. ( #1769 )
2023-06-15 18:51:43 +02:00
Christian
560e80455f
Update samples ( #1768 )
2023-06-15 18:32:28 +02:00
logicaloud and Christian
3b5667c882
Fix #1761 : MQTTRetainedMessageManager, return task with NULL result instead of NULL ( #1762 )
...
* Return task with NULL result instead of NULL
* move Task.FromResult call out of lock
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-06-12 21:52:54 +02:00
Nicke Broström and Christian
0790e54794
Websockets no longer working in Blazor WebAssembly ( #1755 )
...
* Fix for websockets not applying properties unless explicitly set
* Added comment indicating why properties can't be set
* Update ReleaseNotes.md
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2023-06-12 21:48:27 +02:00
Christian
8ad86928f1
1681 misleading signature of mqttclientconnectasync mqttclientconnectresultcode expected but throws exception ( #1749 )
2023-05-29 16:29:16 +02:00