Merge pull request #12072 from benaadams/spelling

Fix spelling
This commit is contained in:
Stephen Halter 2019-07-10 21:33:22 -07:00 committed by GitHub
commit 338b6e01d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -382,7 +382,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2
{
if (readResult.Buffer.Length != 0)
{
throw new Exception("Http2OutpuProducer.ProcessDataWrites() observed an unexpected state where the streams output ended with data still remaining in the pipe.");
ThrowUnexpectedState();
}
// Headers have already been written and there is no other content to write
@ -402,12 +402,17 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2
}
catch (Exception ex)
{
_log.LogCritical(ex, "Http2OutpuProducer.ProcessDataWrites() observed an unexpected exception.");
_log.LogCritical(ex, nameof(Http2OutputProducer) + "." + nameof(ProcessDataWrites) + " observed an unexpected exception.");
}
_dataPipe.Reader.Complete();
return flushResult;
static void ThrowUnexpectedState()
{
throw new InvalidOperationException(nameof(Http2OutputProducer) + "." + nameof(ProcessDataWrites) + " observed an unexpected state where the streams output ended with data still remaining in the pipe.");
}
}
private Memory<byte> GetFakeMemory(int sizeHint)