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

introduce a separate queue for undecryptable packets #2988

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Jan 7, 2021

We should prioritize the decryption of previously undecryptable packets, every time a new encryption level becomes available. This is achieved by introducing a separate queue instead of just putting the packets back into the receivedPackets channel.

This also allows us to only count every received packet once for theamplification limit => fixes #2931.

We should prioritize the decryption of previously undecryptable packets,
every time a new encryption level becomes available. This is achieved
by introducing a separate queue instead of just putting the packets back
into the receivedPackets channel.
This also allows us to only count every received packet once for the
amplification limit.
@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #2988 (26565b0) into master (d1c5297) will decrease coverage by 0.07%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2988      +/-   ##
==========================================
- Coverage   86.12%   86.05%   -0.07%     
==========================================
  Files         135      135              
  Lines        9379     9389      +10     
==========================================
+ Hits         8077     8079       +2     
- Misses        943      950       +7     
- Partials      359      360       +1     
Impacted Files Coverage Δ
session.go 77.25% <60.00%> (-0.61%) ⬇️

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 d1c5297...26565b0. Read the comment docs.

@marten-seemann marten-seemann merged commit 96dbfbc into master Jan 15, 2021
@marten-seemann marten-seemann deleted the fix-undecryptable-packet-handling branch January 15, 2021 09:17
@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.

Undecryptable packets count towards amplification limit for multiple times
2 participants