New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create a client connection to mosquitto broker 2.0.12 or newer #1290
Comments
Does the Mosquitto broker maybe only allow certain logins / client ids by default? |
No, it is a very simple setup in the LAN. The
I don't use user credentials, client certificates, or TLS encryption. This configuraton worked since years and is suddenly broken with MQTTnet + Eclipse Mosquitto >= |
I've done some more tests with MQTTnet running on a Windows machine with .NET Core 3.1 LTS and mosquitto 2.0.13 on several setups: On Windows 64bit, I've tested 32bit and 64bit versions of the broker and on my Raspberry Pi 2 and 4 I've tested the 32bit Linux ARMv7 and 64bit Linux ARMv8 versions of the broker with always the same result. I'm not able to connect to any of these brokers anymore with MQTTnet. The exception is always the same: |
I've found #2309. Setting KeepAlive to another value than |
Realise this has been closed but I thought adding some context might help others experiencing this issue. The error is the result of a change made in Mosquitto 2.0.12:
A change made in 2.0.9 also comes into play:
These changes were made to address an issue with the MQTT protocol itself which permits a denial of service attack (CVE-2020-13849). The default value for the There are two possible solutions:
|
I use
MQTTnet
for client connections andmosquitto
as broker for several years without issues. But now, when I update themosquitto
broker from2.0.11
to the latest versions2.0.12
or2.0.13
I'm no longer able to connect to the broker withMQTTnet
.What I can see so far:
1. MQTTnet version
Reproducible with version
3.0.16
and3.1.0
.2. Exception:
3. The Client ID
Not set in my code, so I'm always using the
MQTTnet
default implementation that results in something like thiseb97c79a96a04ec4bb593253e317c942
. I've checked this again, client ID looks fine to me.4. Other environments
I've also
Node.js
projects that are usingMQTT.js
to create client connections to themosquitto
broker.MQTT.js
still works without any issues even with the latest versions ofmosquitto
==> Seems to be an issue withMQTTnet
.5. Workaround
When I downgrade
mosquitto
to2.0.11
everything works as expected again withMQTTnet
==> Seems to be an issue withmosquitto
.Any idea?
The text was updated successfully, but these errors were encountered: