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

[QUIC] Improve checking WritesClosed #92580

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

ManickaP
Copy link
Member

Gives the WritesClosed task some time to finish and checks the result of the task itself.

Fixes #92350

@ghost
Copy link

ghost commented Sep 25, 2023

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Gives the WritesClosed task some time to finish and checks the result of the task itself.

Fixes #92350

Author: ManickaP
Assignees: -
Labels:

area-System.Net.Quic

Milestone: -

@ManickaP ManickaP force-pushed the mapichov/quic-fix-test branch from ea2164f to c2f6bb3 Compare September 25, 2023 08:52
@ManickaP ManickaP requested a review from a team September 25, 2023 08:53
Assert.True(stream.WritesClosed.IsCompleted);
try
{
await stream.WritesClosed.WaitAsync(TimeSpan.FromSeconds(5));
Copy link
Member

Choose a reason for hiding this comment

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

should the await always throw in this case? Or is it nondeterministic?

Copy link
Member Author

Choose a reason for hiding this comment

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

Non-deterministics as the comment above explains. It depends on timing of the peer, dispose might be called before all the data arrived ==> abort, or after ==> success. This is not just because we buffer the data, MsQuic has it's own layer of buffering that behaves the same way.

@ManickaP ManickaP merged commit af8172d into dotnet:main Sep 25, 2023
@ManickaP ManickaP deleted the mapichov/quic-fix-test branch September 25, 2023 11:22
@karelz karelz added this to the 9.0.0 milestone Oct 11, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReadsWritesClosedFinish_StreamDisposed test failures
3 participants