Skip to content

Resend Close Frames #5107

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

Merged
merged 7 commits into from
Jun 3, 2025
Merged

Resend Close Frames #5107

merged 7 commits into from
Jun 3, 2025

Conversation

nibanks
Copy link
Collaborator

@nibanks nibanks commented May 19, 2025

Description

Resend the connection close if more data is received after shutdown. Fixes #4933.

Testing

CI/CD

Documentation

N/A

@nibanks nibanks requested a review from a team as a code owner May 19, 2025 00:31
@nibanks nibanks added the Area: Core Related to the shared, core protocol logic label May 19, 2025
Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.81%. Comparing base (af5dbeb) to head (ab75b95).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/core/api.c 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5107      +/-   ##
==========================================
- Coverage   87.20%   86.81%   -0.40%     
==========================================
  Files          59       59              
  Lines       18027    18037      +10     
==========================================
- Hits        15720    15658      -62     
- Misses       2307     2379      +72     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

guhetier
guhetier previously approved these changes Jun 2, 2025
mtfriesen
mtfriesen previously approved these changes Jun 3, 2025
@nibanks nibanks enabled auto-merge (squash) June 3, 2025 22:24
@@ -5,6 +5,13 @@

--*/

//
// Private flag of the QUIC_CONNECTION_SHUTDOWN_FLAGS enum used for indicating
// the type of error code being passed in. Not exposed to apps because they
Copy link
Contributor

Choose a reason for hiding this comment

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

nti:

Suggested change
// the type of error code being passed in. Not exposed to apps because they
// a QUIC_STATUS is being passed (and not a QUIC_ERROR).
// Not exposed to apps because they

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The "not a QUIC_ERROR" isn't actually correct either 😄 I think I'd rather just leave it as is for now and not write a massive comment explaining the various types of errors in MsQuic

Copy link
Contributor

@guhetier guhetier left a comment

Choose a reason for hiding this comment

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

Slight nitpick to make the comment for precise and readily useful, good to go otherwise.

@nibanks nibanks merged commit 65660c4 into main Jun 3, 2025
284 of 285 checks passed
@nibanks nibanks deleted the resend-close branch June 3, 2025 22:43
nibanks added a commit that referenced this pull request Jun 4, 2025
nibanks added a commit that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Related to the shared, core protocol logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resend CLOSE Frame in Closing State
4 participants