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

Several TCP fixes, improvements. #1025

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Several TCP fixes, improvements. #1025

wants to merge 4 commits into from

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Dec 30, 2024

  • tcp: set ack_all when remote acks bytes sent in earlier retransmissions.
  • tcp/tests: make sure line number in recv_nothing points to the test code.
  • tcp: start retransmit on first data sent, fix FIN retransmit in CLOSING.
  • tcp: add zero window probe support.

- RFC 6298 says we should start the retransmit timer as soon as we send a segment
  that has data. We were starting it on the *last* segment instead.
- Simplified logic with set_for_idle, it's now uniform across all tcp states.
- Fix FIN retransmits not being sent in CLOSED state.
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

Attention: Patch coverage is 99.01768% with 5 lines in your changes missing coverage. Please review.

Project coverage is 81.21%. Comparing base (104898b) to head (7a248ae).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/socket/tcp.rs 99.01% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1025      +/-   ##
==========================================
+ Coverage   80.88%   81.21%   +0.33%     
==========================================
  Files          81       81              
  Lines       28447    28916     +469     
==========================================
+ Hits        23010    23485     +475     
+ Misses       5437     5431       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant