-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Http.Sys: Clean up Request parsing errors #57531
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,6 +113,8 @@ protected internal bool InitializeFeatures() | |
| catch (Exception ex) | ||
| { | ||
| Log.RequestParsingError(Logger, ex); | ||
| // Synchronously calls Http.Sys and tells it to send an http response | ||
| // No one has written to the response yet (haven't even created the response object below) | ||
| Server.SendError(_requestId.Value, StatusCodes.Status400BadRequest, authChallenges: null); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not immediately obvious that this is a safe place to call
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a synchronous call, only state it needs from InitializeFeature is the request ID which we pass in. Would you like some sort of comment here mentioning it's a synchronous call to native code? |
||
| return false; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.