-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Http Response fails when writing more than 255MB #41239
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
Conversation
|
One note about why Apparently, despite the documentation states that more than 65535 chunks will throw an exception, it seems that 65535 is the limit already. Also, there seems to be a problem when slicing a |
dougbu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the submodule updates from this PR
|
@dougbu sorry, missed that, hope it's fixed now |
| using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
| using Microsoft.AspNetCore.Testing; | ||
|
|
||
| namespace IIS.Tests; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tratcher is it worth running this test in any other functional permutations like IISExpress.Tests?
davidfowl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't in the right layer, it should be closer to the call where the limit actually applies.
halter73
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good. I only have minor feedback.
|
@sebastienros Do we have any benchmarks like plaintext or json that would verify we're not regressing IIS perf for normal response body writes without 65k+ memory chunks? |
|
I just updated some of the comments to use |
He is OOF and asked me to take this over.
No worries, appreciated. Thank you all for the help and the reviews. |
Http Response fails when writing more than 255MB
IISHttpContext.WriteBody now handles big buffers according to the limitation of IHttpResponse::WriteEntityChunks
by slicing the buffer and feeding a max of 65535 chunks per call to the native method.
Fixes #14191