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

Fixed client complete aborting websocket that is sending #7793

Conversation

sunghwan2789
Copy link
Collaborator

ManagedWebSocket.SendAsync abort the connection when a cancellation is raised. OperationSession cancel reading the response stream and sending when the client sends a complete message. This PR fixes multiple operation being aborted by a completing operation.

https://github.com/dotnet/runtime/blob/e7d837da5b1aacd9325a8b8f2214cfaf4d3f0ff6/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs#L613

ManagedWebSocket.SendAsync abort the connection when a cancellation is raised.
OperationSession cancel reading the response stream and sending when the client sends a complete message.
This PR fixes multiple operation being aborted by a completing operation.
@sunghwan2789 sunghwan2789 changed the title Fixed client complete abort websocket that is sending Fixed client complete aborting websocket that is sending Dec 2, 2024
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.32%. Comparing base (0276674) to head (282b0f3).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7793      +/-   ##
==========================================
- Coverage   74.33%   74.32%   -0.01%     
==========================================
  Files        2867     2867              
  Lines      149872   149872              
  Branches    17414    17414              
==========================================
- Hits       111411   111398      -13     
- Misses      32658    32673      +15     
+ Partials     5803     5801       -2     
Flag Coverage Δ
unittests 74.32% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@michaelstaib michaelstaib merged commit 91c4917 into ChilliCream:main Dec 3, 2024
3 checks passed
@michaelstaib michaelstaib added the 🍒 cherry-pick Consider cherry-picking these changes into the previous major version. label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 cherry-pick Consider cherry-picking these changes into the previous major version. 🌶️ hot chocolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants