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

declare the handshake confirmed when receiving an ACK for a 1-RTT packet #3148

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

marten-seemann
Copy link
Member

... on the client side. Both the receipt of HANDSHAKE_DONE and the receipt of an ACK for a 1-RTT packet are sufficient for declaring confirmation of the handshake.

Fixes #3144. @rip-create-your-account

... on the client side. Both the receipt of HANDSHAKE_DONE and the
receipt of an ACK for a 1-RTT packet are sufficient for declaring
confirmation of the handshake.
@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #3148 (17d9860) into master (3138a45) will increase coverage by 0.03%.
The diff coverage is 91.67%.

❗ Current head 17d9860 differs from pull request most recent head 9e9d4a4. Consider uploading reports for the commit 9e9d4a4 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3148      +/-   ##
==========================================
+ Coverage   85.38%   85.41%   +0.03%     
==========================================
  Files         131      131              
  Lines        9684     9690       +6     
==========================================
+ Hits         8268     8276       +8     
+ Misses       1046     1044       -2     
  Partials      370      370              
Impacted Files Coverage Δ
internal/ackhandler/sent_packet_handler.go 77.70% <85.71%> (+0.16%) ⬆️
session.go 77.36% <100.00%> (+0.16%) ⬆️
internal/utils/rand.go 75.00% <0.00%> (+12.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3138a45...9e9d4a4. Read the comment docs.

@rip-create-your-account

SentPacketHandler stores only ack-eliciting packets so an opportunity to confirm the handshake could be missed. Or is there a reason to not confirm handshake with packets that are not ack-eliciting? The suggested implementation allows it.

Also with the current implementation, I think the comments on the SentPacketHandler interface like /* contained 1-RTT packet */ should be /* contained 1-RTT ack-eliciting packet */ just to be exact.

@marten-seemann
Copy link
Member Author

Or is there a reason to not confirm handshake with packets that are not ack-eliciting?

@rip-create-your-account we don't save them in the packet history.

@marten-seemann marten-seemann merged commit d2739ab into master Apr 30, 2021
@marten-seemann marten-seemann deleted the fix-on-loss-detection-busy-looping branch May 1, 2021 02:22
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
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.

SentPacketHandler.OnLossDetectionTimeout sometimes called repeatedly during handshake
3 participants