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

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

Open
denis-papin opened this issue May 19, 2023 · 1 comment
Open

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

denis-papin opened this issue May 19, 2023 · 1 comment

Comments

@denis-papin
Copy link

denis-papin commented May 19, 2023

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

@zonyitoo
Copy link
Owner

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

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