-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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/tcp: Fix TCP keepalive time unit misuse problem #13589
Conversation
[Experimental Bot, please feedback here] This Pull Request appears to meet the basic NuttX requirements for clarity and content. Here's a breakdown based on the provided information: Strengths:
Areas for Potential Improvement:
Overall: The PR presents the necessary information clearly. Enhancing the testing section and providing slightly more detail on the impact would further strengthen the submission. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include commit message with a quick/small overview of the issue/fix.
Summary: The conn->keeptimer units is decisecond,but its unit is treated as half-second in the tcp_timer & tcp_get_timeout function. Therefore conn>keeptimer needs to be divided by 5(DSEC_PER_HSEC) to match half-second units. Signed-off-by: zhangshuai39 <[email protected]>
Done |
Summary
The conn->keeptimer units is decisecond,but its unit is treated as half-second in the tcp_timer & tcp_get_timeout function.
This question was asked here:
#13493
Impact
Only affects the TCP keepalive mechanism.
Testing
Local packet capture verification.