mqtt-rs
mqtt-rs copied to clipboard
100% of 1 cpu core on VariablePacket::decode(&mut stream) ?
Hi, I follow the example to write a client for my mqtt server, and my client program take 100% of 1 CPU core on Linux. It looks like when pending for incoming data, VariablePacket::decode(&mut stream) is doing something.
https://github.com/denis-papin/ava-home/blob/main/src/main.rs at line 510
Is there anything I am doing wrong? Regards, Denis
Not very sure. What did you see in logs? Maybe you should try to attach gdb on it.