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
Windows: MQTT protocol connections dont work when too many websocket connections #1934
Comments
The 64 client limit must no longer apply due to changes in libwebsockets. I'll try and see if I can reproduce your problem in Windows. |
I have tried on more windows systems, and found several where once any websocket is connected, mqtt doesn't work at all? Here is my simple setup, Windows10 with mosquitto-2.0.0-install-windows-x64.exe installed. mosquitto.conf is:
run mosquitto: output shows:
publish works as expected:
now connect websocket (I'd did it via mqttjs) and subscribe to topic 'test'
now try and publish again on mqtt:
Nothing happens.... after a long time mosquitto_pub outputs: If you disconnect the websocket before that error, the publish suddenly works. Repeat exact same procedure with version 1.6.9 - everything works fine - publish is able to work even when a websocket is connected. |
I believe this is now fixed, it will be part of 2.0.1. |
Thank you, when would 2.0.1 likely come out? |
@sectokia was the issue resolved for you? For me the upgrade to Windows version 2.0.2 did not resolve those symptoms. |
Is anyone able to write a breif tutorial of how to setup to compile moqusitto for windows? I know C, but I have no idea how to get the toolchain going to compile. On linux its so simple and I'm able to run and debug fine. On windows however I have no idea what I am doing. I installed visual studio and opened the source code folder in visual studio, which did trigger cmake to do... something. But I have no idea where to go from there. Anyone know how to: make a 'project' for so you can just hit compile/run/debug etc? |
This issue still occurs as of 2.0.3a. Is there any instructions for how to compile on windows anywhere? |
Closes eclipse#1934. Thanks to sectokia.
Closes eclipse#1934. Thanks to sectokia and jarapa9.
I have a problem with v2 on windows, where once too many websocket clients connect, the MQTT protocol listener won't accept connections anymore.
Here is a reliable procedure to reproduce:
-Connect a client via protocol MQTT.
-Connect 72 clients via protocol Websocket (I verify more than 64 at once by waiting for PINGREQ/PINGRESP, how is this possible, I thought the limit was 64?)
-Kill the client connected via MQTT, and wait for mosquitto to timeout disconnect it.
-Start any MQTT client again on MQTT protocol. All clients I've tried report a connack timeout, and there is no "New connection" ever reported in the log.
-Even if you then disconnect all 72 websocket clients, you still cannot connect via MQTT protocol anymore. Only way I've found to fix it is to restart mosquitto.
Invocation:
mosquitto -c ..\config\mosquitto.conf > ..\log\mosquitto.log
This is my conf:
The text was updated successfully, but these errors were encountered: