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

net/telnet: fix a potential busyloop if rxbuffer writes faster than read #3894

Merged
merged 1 commit into from
Jun 13, 2021

Conversation

anchao
Copy link
Contributor

@anchao anchao commented Jun 10, 2021

Summary

net/telnet: fix a potential busyloop if rxbuffer writes faster than read

Telnet cache will calculate be 0 if write faster than reading:

https://github.com/apache/incubator-nuttx/blob/dbf9c87a428612a2e3374e24081621502eebd822/drivers/net/telnet.c#L1311-L1317

Impact

CPU loading will increase if telnet testing write a long needles command

Testing

telnet test

@xiaoxiang781216 xiaoxiang781216 merged commit 50f415d into apache:master Jun 13, 2021
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

Successfully merging this pull request may close these issues.

2 participants