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

close connection when an abnormally large number of frames are queued #4369

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Mar 18, 2024

Under normal circumstances, we should be able to send out control frames right away, so we don't expect any queue to build up. To defend against resource exhaustion attacks, we limit the control frame queue to 16k elements.

Under normal circumstances, we should be able to send out control frames
right away, so we don't expect any queue to build up. To defend against
resource exhaustion attacks, we limit the control frame queue to 8192
elements.
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 85.22%. Comparing base (497d3f5) to head (ce7e5eb).
Report is 1 commits behind head on master.

Files Patch % Lines
connection.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4369      +/-   ##
==========================================
+ Coverage   84.89%   85.22%   +0.33%     
==========================================
  Files         151      151              
  Lines       14353    14630     +277     
==========================================
+ Hits        12184    12468     +284     
+ Misses       1669     1663       -6     
+ Partials      500      499       -1     

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

@marten-seemann
Copy link
Member Author

@marten-seemann marten-seemann merged commit 4a99b81 into master Mar 18, 2024
34 checks passed
@marten-seemann marten-seemann deleted the mongoose-fix branch March 18, 2024 00:42
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

1 participant