eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.93k stars 2.37k forks source link

Error when starting with websockets #1093

Open rosshigh opened 5 years ago

rosshigh commented 5 years ago

I've installed the mosquitto broker on windows server 2012 and I'm able to run and test it successfully with the default config. However, if I put the following two lines in the config file:

listener 8080 protocol websockets

I get the following error (?) that repeats continuously and the server refuses connections:

1546018788: Error in poll: No error.

Any suggestions would be appreciated,

Ross

ralight commented 5 years ago

Sorry for the lack of earlier reply, are you able to try the 1.5.6 version instead?

gguerreromx commented 5 years ago

Installed version 1.5.7 in Windows 10 v1810.

Using "log_type all" shows the described message every cycle upon starting.

After a successful ws connection, the message stops. Disconnecting and leaving 0 connected devices, the message starts again.

ralight commented 5 years ago

I've finally figured out the cause of this, but there is no solution yet. If you define a second listener that is not websockets the problem disappears.

This will do that, and make the new listener only accessible on localhost:

listener 1883 127.0.0.1