Complete all writes after error
This commit is contained in:
parent
a97cb81f92
commit
cd621509d0
|
|
@ -370,15 +370,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
// completed writes that we haven't triggered callbacks for yet.
|
// completed writes that we haven't triggered callbacks for yet.
|
||||||
_numBytesPreCompleted -= bytesWritten;
|
_numBytesPreCompleted -= bytesWritten;
|
||||||
|
|
||||||
CompleteFinishedWrites(status);
|
if (error == null)
|
||||||
|
|
||||||
if (error != null)
|
|
||||||
{
|
{
|
||||||
_log.ConnectionError(_connectionId, error);
|
CompleteFinishedWrites(status);
|
||||||
|
_log.ConnectionWriteCallback(_connectionId, status);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_log.ConnectionWriteCallback(_connectionId, status);
|
CompleteAllWrites();
|
||||||
|
_log.ConnectionError(_connectionId, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue