Skip to content
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

Zero length packets error when using SSL #115

Open
ToSa27 opened this issue Jul 3, 2016 · 1 comment
Open

Zero length packets error when using SSL #115

ToSa27 opened this issue Jul 3, 2016 · 1 comment

Comments

@ToSa27
Copy link
Contributor

ToSa27 commented Jul 3, 2016

Connecting to Mosquitto with encryption enabled the client throws unnecessary error messages. For every packet received I first get two debug messages related to a 0 length packet. Simple example for keep-alive (pingres):

MQTT: Send keepalive packet to xxxxx.xxx:1883!
MQTT: Sending, type: 12, id: 0000
TCP: Sent
TCP: data received 0 bytes
ERROR: Message too long
TCP: data received 2 bytes

Functionality seems not to be compromised. Looking at the traffic with Wireskark (with the private key provided to decode the traffic) it seems like the messages are caused by some of the acknowledge packages. These should be ignored instead.

To reduce confusion it would help to have a specific error message for zero length or at least change the message to "Message too long or empty" ;)

@Krit007
Copy link

Krit007 commented Aug 24, 2017

me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants