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

don't spawn a new Go routine to send a Retry packet #4092

Merged
merged 1 commit into from Sep 25, 2023

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Sep 17, 2023

Depends on #4091.

Comment on lines 254 to +257
versionNegotiationQueue: make(chan receivedPacket, 4),
invalidTokenQueue: make(chan rejectedPacket, 4),
connectionRefusedQueue: make(chan rejectedPacket, 4),
retryQueue: make(chan rejectedPacket, 8),
Copy link
Collaborator

@sukunrt sukunrt Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Any reason for the queue lengths? I mean why is version negotiation 4 and this one is 8. Just curious about your thoughts.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't backed by any data, but I'd expect Retries to be sent more frequently than the other types of packets. #4077 will give us more insights at some point.

@marten-seemann marten-seemann changed the base branch from connection-refused-go-routine to master September 25, 2023 10:58
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Merging #4092 (de9b392) into master (ae2ef95) will decrease coverage by 0.01%.
The diff coverage is 64.71%.

@@            Coverage Diff             @@
##           master    #4092      +/-   ##
==========================================
- Coverage   83.74%   83.73%   -0.01%     
==========================================
  Files         150      150              
  Lines       15393    15401       +8     
==========================================
+ Hits        12890    12895       +5     
- Misses       2005     2008       +3     
  Partials      498      498              
Files Changed Coverage Δ
server.go 76.63% <64.71%> (-0.20%) ⬇️

@marten-seemann marten-seemann merged commit 49e588a into master Sep 25, 2023
17 checks passed
@marten-seemann marten-seemann deleted the retry-go-routine branch September 25, 2023 11:23
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.

None yet

2 participants