Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

HTTP2: fix race between request failure and response body read - #39745

Merged
geoffkizer merged 1 commit into
dotnet:masterfrom
geoffkizer:requesterrorfix
Jul 25, 2019
Merged

geoffkizer merged 1 commit into
dotnet:masterfrom
geoffkizer:requesterrorfix

Conversation

@geoffkizer

Copy link
Copy Markdown

Fixes #39729

@geoffkizer geoffkizer added this to the 3.0 milestone Jul 24, 2019
@geoffkizer
geoffkizer requested review from a team and stephentoub July 24, 2019 21:02
@geoffkizer geoffkizer self-assigned this Jul 24, 2019
@geoffkizer

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 4 pipeline(s).


lock (SyncObject)
{
Debug.Assert(_requestCompletionState == StreamCompletionState.InProgress, $"Request already completed with state={_requestCompletionState}");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this assert still valid? The Cancel couldn't cause the state to change?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It's still valid. Cancel will not modify _requestCompletionState.

@geoffkizer

Copy link
Copy Markdown
Author

@dotnet/dnceng I'm getting "500: Internal Server Error" trying to look at test failures. Been like this for an hour or so.

@MattGal

MattGal commented Jul 25, 2019

Copy link
Copy Markdown
Member

@danmoseley

Copy link
Copy Markdown

Can we please get stress done on this before porting to 3.0

cc @eiriktsarpalis

@geoffkizer

Copy link
Copy Markdown
Author

I'm running stress on it now -- 2 minutes in, so far so good :)

@geoffkizer

Copy link
Copy Markdown
Author

HttpClient functional failures are unrelated (CurlHandler)

@geoffkizer

Copy link
Copy Markdown
Author

Ran stress against http.sys for about an hour and a half, 0 failures

@karelz

karelz commented Aug 3, 2019

Copy link
Copy Markdown
Member

This PR went into master - fixing milestone to 5.0.
It was later ported into release/3.0 branch in PR #39781.

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
HTTP2: fix race between request failure and response body read

Commit migrated from dotnet/corefx@64a9e2c
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.

PostAsyncDuplex_RequestContentExceptionAfterResponseEndReceivedButBeforeConsumed_ResetsStreamAndThrowsOnResponseStreamRead failed in CI

5 participants