diff --git a/benchmarks/Kestrel.Performance/AsciiBytesToStringBenchmark.cs b/benchmarks/Kestrel.Performance/AsciiBytesToStringBenchmark.cs index 173b7260e5..2f9c2423f5 100644 --- a/benchmarks/Kestrel.Performance/AsciiBytesToStringBenchmark.cs +++ b/benchmarks/Kestrel.Performance/AsciiBytesToStringBenchmark.cs @@ -224,7 +224,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance public static unsafe bool TryGetAsciiStringVectorWiden(byte* input, char* output, int count) { - // Calcuate end position + // Calculate end position var end = input + count; // Start as valid var isValid = true; @@ -324,7 +324,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance public static unsafe bool TryGetAsciiStringVectorCheck(byte* input, char* output, int count) { - // Calcuate end position + // Calculate end position var end = input + count; // Start as valid var isValid = true; diff --git a/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs b/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs index 54d400d3a9..6f82e27dd0 100644 --- a/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs +++ b/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs @@ -428,7 +428,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http 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 (_context.TakeMessageHeaders(readableBuffer, out consumed, out examined)) diff --git a/src/Kestrel.Core/Internal/Infrastructure/StringUtilities.cs b/src/Kestrel.Core/Internal/Infrastructure/StringUtilities.cs index 76c4a8576e..95073a97de 100644 --- a/src/Kestrel.Core/Internal/Infrastructure/StringUtilities.cs +++ b/src/Kestrel.Core/Internal/Infrastructure/StringUtilities.cs @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure { public static unsafe bool TryGetAsciiString(byte* input, char* output, int count) { - // Calcuate end position + // Calculate end position var end = input + count; // Start as valid var isValid = true; diff --git a/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs b/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs index 1e621f401b..f8145ae22d 100644 --- a/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs +++ b/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs @@ -305,7 +305,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal _post.Reference(); _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 // 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. diff --git a/src/Kestrel.Transport.Sockets/SocketTransport.cs b/src/Kestrel.Transport.Sockets/SocketTransport.cs index 725ee0546d..4882b47114 100644 --- a/src/Kestrel.Transport.Sockets/SocketTransport.cs +++ b/src/Kestrel.Transport.Sockets/SocketTransport.cs @@ -159,7 +159,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets } 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)"); } catch (SocketException ex) when (!_unbinding)