Corrects spelling of some comments (#2461)

This commit is contained in:
Andrei Amialchenia 2018-04-04 01:55:17 +03:00 committed by Stephen Halter
parent 5c87b44a3e
commit 70ce044778
5 changed files with 6 additions and 6 deletions

View File

@ -224,7 +224,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
public static unsafe bool TryGetAsciiStringVectorWiden(byte* input, char* output, int count) public static unsafe bool TryGetAsciiStringVectorWiden(byte* input, char* output, int count)
{ {
// Calcuate end position // Calculate end position
var end = input + count; var end = input + count;
// Start as valid // Start as valid
var isValid = true; var isValid = true;
@ -324,7 +324,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
public static unsafe bool TryGetAsciiStringVectorCheck(byte* input, char* output, int count) public static unsafe bool TryGetAsciiStringVectorCheck(byte* input, char* output, int count)
{ {
// Calcuate end position // Calculate end position
var end = input + count; var end = input + count;
// Start as valid // Start as valid
var isValid = true; var isValid = true;

View File

@ -428,7 +428,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
readableBuffer = readableBuffer.Slice(consumed); readableBuffer = readableBuffer.Slice(consumed);
} }
// _consumedBytes aren't tracked for trailer headers, since headers have seperate limits. // _consumedBytes aren't tracked for trailer headers, since headers have separate limits.
if (_mode == Mode.TrailerHeaders) if (_mode == Mode.TrailerHeaders)
{ {
if (_context.TakeMessageHeaders(readableBuffer, out consumed, out examined)) if (_context.TakeMessageHeaders(readableBuffer, out consumed, out examined))

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure
{ {
public static unsafe bool TryGetAsciiString(byte* input, char* output, int count) public static unsafe bool TryGetAsciiString(byte* input, char* output, int count)
{ {
// Calcuate end position // Calculate end position
var end = input + count; var end = input + count;
// Start as valid // Start as valid
var isValid = true; var isValid = true;

View File

@ -305,7 +305,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal
_post.Reference(); _post.Reference();
_post.Dispose(); _post.Dispose();
// We need this walk because we call ReadStop on on accepted connections when there's back pressure // We need this walk because we call ReadStop on accepted connections when there's back pressure
// Calling ReadStop makes the handle as in-active which means the loop can // Calling ReadStop makes the handle as in-active which means the loop can
// end while there's still valid handles around. This makes loop.Dispose throw // end while there's still valid handles around. This makes loop.Dispose throw
// with an EBUSY. To avoid that, we walk all of the handles and dispose them. // with an EBUSY. To avoid that, we walk all of the handles and dispose them.

View File

@ -159,7 +159,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
} }
catch (SocketException ex) when (ex.SocketErrorCode == SocketError.ConnectionReset) catch (SocketException ex) when (ex.SocketErrorCode == SocketError.ConnectionReset)
{ {
// REVIEW: Should there be a seperate log message for a connection reset this early? // REVIEW: Should there be a separate log message for a connection reset this early?
_trace.ConnectionReset(connectionId: "(null)"); _trace.ConnectionReset(connectionId: "(null)");
} }
catch (SocketException ex) when (!_unbinding) catch (SocketException ex) when (!_unbinding)