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

HTTP2: Ensure we never send EndStream after RST_STREAM - #39834

Merged
geoffkizer merged 1 commit into
dotnet:masterfrom
geoffkizer:fixendstreamrace
Jul 28, 2019
Merged

geoffkizer merged 1 commit into
dotnet:masterfrom
geoffkizer:fixendstreamrace

Conversation

@geoffkizer

@geoffkizer geoffkizer commented Jul 27, 2019 •

Copy link
Copy Markdown

Fixes #39586
Fixes #39819

There's a timing gap currently which can result in us sending EndStream on the request body after we've already sent RST_STREAM, which is not allowed.

Fix this by ensuring we never send EndStream if we've already sent RST_STREAM.

@danmosemsft This will need to get ported to the 3.0 branch -- GRPC stress issue.

@eiriktsarpalis Can we add a stress variation that tries to induce this issue? See description in #39819 (edit: fixed issue # here)

@geoffkizer geoffkizer added this to the 3.0 milestone Jul 27, 2019
@geoffkizer
geoffkizer requested review from a team and stephentoub July 27, 2019 22:51
@geoffkizer

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

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

@geoffkizer

Copy link
Copy Markdown
Author

I'm running our HttpStress on this now.

I ran GRPC stress on this as well, and did not see the original issue described in #39819 repro. However, I had to do this with a hacked build to avoid dotnet/aspnetcore#12628.

@geoffkizer

Copy link
Copy Markdown
Author

HttpStress has been running for an hour, no failures.

@geoffkizer
geoffkizer merged commit 57df8b3 into dotnet:master Jul 28, 2019
@danmoseley

Copy link
Copy Markdown

Let's get it into 3.0 then.

Ask mode starts Monday.

@JamesNK

JamesNK commented Jul 28, 2019

Copy link
Copy Markdown
Member

Ping me when this is in 3.0 and I'll update gRPC to the latest SDK and re-test https://github.com/dotnet/corefx/issues/39586. I can consistently repro it.

@geoffkizer

Copy link
Copy Markdown
Author

It's in master now, will be ported to 3.0 soon (today, hopefully). #39874

@karelz karelz modified the milestones: 3.0, 5.0 Aug 3, 2019
@karelz

karelz commented Aug 3, 2019

Copy link
Copy Markdown
Member

This PR went into master - fixing milestone to 5.0.
It will be ported into release/3.0 branch in PR #39874.

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
HTTP2: Ensure we never send EndStream after RST_STREAM

Commit migrated from dotnet/corefx@57df8b3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTP2: Race between response body Dispose and request body completion HTTP2: Hang when sending multiple requests from a HttpClient

6 participants