Marwan141 / MinQTT

A minimalistic implementation of an MQTT Client library, with built-in encryption options.
2 stars 0 forks source link

Unexpected EOF when reading packet #8

Open raghav2005 opened 3 weeks ago

raghav2005 commented 3 weeks ago

After running cargo run, I receive the following outputs from the terminal:


Connecting to broker at test.mosquitto.org:1883
Connected to broker, sending CONNECT packet...
CONNECT packet sent!
Connected to the broker!
Nothing is in the stream.
Nothing is in the stream.
Nothing is in the stream.
Nothing is in the stream.
Nothing is in the stream.
Sent PINGREQ
Received PINGRESP
Failed to read packet: Custom { kind: UnexpectedEof, error: "early eof" }
Marwan141 commented 3 weeks ago

Tested - This is happening due to 2 clients connecting with the same Client ID to the same broker, will add descriptive error later on.