-
Notifications
You must be signed in to change notification settings - Fork 7.7k
net: tcp: Fix handling of keep-alive probes #93431
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 handling of keep-alive probes #93431
Conversation
Keep-alive probes have seq number set to SND.NXT - 1 and may or may not contain an octet of data. The latter case was not handled properly therefore add a special case when validating seq number to response to keep-alive probes. Signed-off-by: Robert Lubos <[email protected]>
Add test verifying that if keep-alive messages are exchanged, the connection remains alive. Signed-off-by: Robert Lubos <[email protected]>
CC @shrek-wang |
|
ping @pdgendt |
I'm not super familiar with the TCP stack, so was hoping others could chime in. @lucasdietrich can you confirm that this fixes your issue? |
The reviewer list is short on this one so just trying to get this moving forward 😄 |
Yes, I can confirm that the patch fixes my issue. Thanks! |
Fix processing of a received keep-alive probe and add a test case that the connection remains alive after a keep-alive exchange.
Fixes #93350