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

v1.18: quic: delay calling set_max_concurrent_uni_streams/set_receive_window (backport of #904) #968

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Apr 22, 2024

Delay calling connection.set_max_concurrent_uni_streams() and connection.set_receive_window() to when we know we've accepted the connection. Avoids a short window where the peer could start transmitting even if we're going to drop the connection, and avoids taking the connection mutex and waking a task.


This is an automatic backport of pull request #904 done by Mergify.

@lijunwangs
Copy link

@mergify rebase

Copy link
Author

mergify bot commented Apr 24, 2024

rebase

❌ Unable to rebase: user lijunwangs is unknown.

Please make sure lijunwangs has logged in Mergify dashboard.

…#904)

* quic: don't call connection.set_max_concurrent_uni_streams if we're going to drop a connection

Avoids taking a mutex and waking a task.

* quic: don't increase the receive window before we've actually accepted a connection

(cherry picked from commit 2770424)
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.5%. Comparing base (efc616a) to head (4131c9b).
Report is 2 commits behind head on v1.18.

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.18     #968     +/-   ##
=========================================
- Coverage    81.5%    81.5%   -0.1%     
=========================================
  Files         827      827             
  Lines      225122   225122             
=========================================
- Hits       183687   183679      -8     
- Misses      41435    41443      +8     

@lijunwangs lijunwangs merged commit c8b19b3 into v1.18 Apr 24, 2024
35 checks passed
@lijunwangs lijunwangs deleted the mergify/bp/v1.18/pr-904 branch April 24, 2024 22:49
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
…_window (backport of anza-xyz#904) (anza-xyz#968)

quic: delay calling set_max_concurrent_uni_streams/set_receive_window (anza-xyz#904)

* quic: don't call connection.set_max_concurrent_uni_streams if we're going to drop a connection

Avoids taking a mutex and waking a task.

* quic: don't increase the receive window before we've actually accepted a connection

(cherry picked from commit 2770424)

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
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.

4 participants