-
Notifications
You must be signed in to change notification settings - Fork 866
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
[core] make sure TTL will not drop packets over last block #2005
[core] make sure TTL will not drop packets over last block #2005
Conversation
f21a45f
to
eee207d
Compare
This comment has been minimized.
This comment has been minimized.
any comment? |
Your improvement looks good. for (int i = 0; i < offset; ++i)
p = p->m_pNext; |
I have check for this loop, although |
As long as you add the explanation of the return values in the function's documentation, there's no problem with it. |
I have just checked the code in |
Yes. Packets are added sequentially to the buffer, and there should be no gaps. |
Originally they didn't even have sequence numbers until they were sent out for the first time. This has changed only with the group code, and it's only for synchronization. There shouldn't ever happen a case of existing a gap in the sender buffer, even in the group code, in which case there may happen an "initial shift" due to link activation that causes a difference between ISN and the first packet sequence, but this is resolved by wiping out this initial part of the buffer and causing an artificial loss that is ignored at the receiver side. |
Something's wrong. Can you please merge against the latest |
I don't known why add a log will make the unit test failed... it success in my local |
thx for the merge :) |
@gou4shi1 Thank you for the contribution! 😄 |
The msg seq of
m_pLastBlock
is undefined, right?