Skip to content

Commit d164f35

Browse files
committed
Add comment explaining why ForChunkedEncoding._vectorCRs is not static
1 parent 5807009 commit d164f35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.AspNetCore.Server.Kestrel/Http/MessageBody.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ private async Task<int> ReadAsyncAwaited(Task<int> task)
215215
/// </summary>
216216
private class ForChunkedEncoding : MessageBody
217217
{
218+
// This causes an InvalidProgramException if made static
219+
// https://github.com/dotnet/corefx/issues/8825
218220
private Vector<byte> _vectorCRs = new Vector<byte>((byte)'\r');
219221

220222
private int _inputLength;

0 commit comments

Comments
 (0)