mqtt-rs icon indicating copy to clipboard operation
mqtt-rs copied to clipboard

100% of 1 cpu core on VariablePacket::decode(&mut stream) ?

Open denis-papin opened this issue 2 years ago • 1 comments

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

denis-papin avatar May 19 '23 10:05 denis-papin

Not very sure. What did you see in logs? Maybe you should try to attach gdb on it.

zonyitoo avatar May 20 '23 16:05 zonyitoo