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

[release/3.0] HTTP2: Ensure we don't try to send RST_STREAM or EndStream while holding the stream lock#40180

Merged
danmoseley merged 1 commit intodotnet:release/3.0from
geoffkizer:port40123
Aug 9, 2019
Merged

[release/3.0] HTTP2: Ensure we don't try to send RST_STREAM or EndStream while holding the stream lock#40180
danmoseley merged 1 commit intodotnet:release/3.0from
geoffkizer:port40123

Conversation

@geoffkizer
Copy link

Fixes #40115

Description

Sending a frame -- specifically, calling SendRstStreamAsync or SendEndStreamAsync -- can fail, which causes active streams to be aborted. Avoid doing this under the stream lock, to prevent lock reentrancy issues.

Impact

Fixes test asserts. Avoids any potential issues caused by accidental lock reentrancy here.

Regression

No

Risk

Low

@danmosemsft

@geoffkizer geoffkizer added this to the 3.0 milestone Aug 9, 2019
@danmoseley danmoseley merged commit 07fb424 into dotnet:release/3.0 Aug 9, 2019
@danmoseley
Copy link
Member

tactics approved

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.

3 participants