Add comment explaining why ForChunkedEncoding._vectorCRs is not static

This commit is contained in:
Stephen Halter 2016-05-24 15:59:35 -07:00
parent 58070099fc
commit d164f350b4
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
/// </summary> /// </summary>
private class ForChunkedEncoding : MessageBody private class ForChunkedEncoding : MessageBody
{ {
// This causes an InvalidProgramException if made static
// https://github.com/dotnet/corefx/issues/8825
private Vector<byte> _vectorCRs = new Vector<byte>((byte)'\r'); private Vector<byte> _vectorCRs = new Vector<byte>((byte)'\r');
private int _inputLength; private int _inputLength;