Skip to content

Commit 283396a

Browse files
committed
Log message
1 parent c9ac10d commit 283396a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Servers/Kestrel/Core/src/Internal/Http/Http1ContentLengthMessageBody.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using System.Diagnostics;
65
using System.IO.Pipelines;
76
using System.Threading;
87
using System.Threading.Tasks;
98
using Microsoft.AspNetCore.Connections;
10-
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure;
119

1210
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
1311
{
@@ -59,6 +57,7 @@ public override async ValueTask<ReadResult> ReadAsync(CancellationToken cancella
5957
}
6058
catch (ConnectionAbortedException ex)
6159
{
60+
Log.RequestBodyDrainTimedOut(_context.ConnectionIdFeature, _context.TraceIdentifier);
6261
throw new TaskCanceledException("The request was aborted", ex);
6362
}
6463

@@ -77,7 +76,7 @@ public override async ValueTask<ReadResult> ReadAsync(CancellationToken cancella
7776
}
7877
else
7978
{
80-
// TODO should this reset the timing read?
79+
// Reset the timing read here for the next call to read.
8180
StopTimingRead(0);
8281
continue;
8382
}

0 commit comments

Comments
 (0)