From f1e0143d5172ad0d8146176f82c40d70aa793b9c Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sun, 19 Mar 2017 01:31:11 -0700 Subject: [PATCH] React to corefxlab changes (#1510) * React to latest CoreFxLab changes --- .../Internal/Http/Connection.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs index 3708cf52a1..d2abc6ead2 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs @@ -301,7 +301,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http if (flushTask?.IsCompleted == false) { OnPausePosted(); - if (await flushTask.Value) + var result = await flushTask.Value; + // If the reader isn't complete then resume + if (!result.IsCompleted) { OnResumePosted(); }