Merge branch 'shalter/last-request' into dev
This commit is contained in:
commit
3f0e65495e
|
|
@ -37,8 +37,18 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
{
|
{
|
||||||
if (SocketInput.RemoteIntakeFin)
|
if (SocketInput.RemoteIntakeFin)
|
||||||
{
|
{
|
||||||
|
// We need to attempt to consume start lines and headers even after
|
||||||
|
// SocketInput.RemoteIntakeFin is set to true to ensure we don't close a
|
||||||
|
// connection without giving the application a chance to respond to a request
|
||||||
|
// sent immediately before the a FIN from the client.
|
||||||
|
if (TakeStartLine(SocketInput))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await SocketInput;
|
await SocketInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -48,8 +58,18 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
{
|
{
|
||||||
if (SocketInput.RemoteIntakeFin)
|
if (SocketInput.RemoteIntakeFin)
|
||||||
{
|
{
|
||||||
|
// We need to attempt to consume start lines and headers even after
|
||||||
|
// SocketInput.RemoteIntakeFin is set to true to ensure we don't close a
|
||||||
|
// connection without giving the application a chance to respond to a request
|
||||||
|
// sent immediately before the a FIN from the client.
|
||||||
|
if (TakeMessageHeaders(SocketInput, FrameRequestHeaders))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await SocketInput;
|
await SocketInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue