Skip to content

Workaround for Kestrel bleeding AsyncLocal across requests - #9

Merged
alefranz merged 2 commits into
masterfrom
asynclocal-fix
Oct 27, 2019
Merged

alefranz merged 2 commits into
masterfrom
asynclocal-fix

Conversation

@alefranz

@alefranz alefranz commented Oct 27, 2019 •

Copy link
Copy Markdown
Owner

As per dotnet/aspnetcore#13991, Kestrel is causing AsyncLocal to bleed context data across requests on same HTTP/1.1 connection.

This makes the Middleware async to address the issue.

Fixes #6
Fixes #7

@alefranz
alefranz merged commit da9e30a into master Oct 27, 2019
@alefranz
alefranz deleted the asynclocal-fix branch October 27, 2019 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Headers mangled without previous async middleware Propagating the last known header value when not present

1 participant