-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[QUIC] Should QuicStream cancellation abort? #72607
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Use case from @bentoi from #69675 (comment)
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsThe idea behind #55485 was to either have soft cancellation - you can still use the stream afterwards; or abort on cancellation - what we do now. Neither solution is perfect, the question is which one is better for most of the users:
What we had in .NET until now, not aborting but also not allowing any subsequent operation, seems like the least expected behavior, so I'd rather not bring it back. Originally posted by @ManickaP in #69675 (comment)
|
Triage: we should look at what sockets and ssl stream do in these cases and do the same thing. We should decide in 8.0 timeframe. |
I'm closing this as the decision is to keep it as it it. |
The idea behind #55485 was to either have soft cancellation - you can still use the stream afterwards; or abort on cancellation - what we do now.
If you want to abort the stream with another code, you can abort it on your own. You wouldn't pass in your cancellation token to read/write but rather register for it on your own and call
Abort(Read/Write)
which will unblock the pending operation.Neither solution is perfect, the question is which one is better for most of the users:
What we had in .NET until now, not aborting but also not allowing any subsequent operation, seems like the least expected behavior, so I'd rather not bring it back.
Originally posted by @ManickaP in #69675 (comment)
The text was updated successfully, but these errors were encountered: