From e69f63e49469408e34e5baa957bdffc2615e6ca4 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Sun, 19 Jul 2015 15:47:39 +0100 Subject: [PATCH 1/2] ConfigureAwait(false) --- src/Kestrel/ServerFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kestrel/ServerFactory.cs b/src/Kestrel/ServerFactory.cs index e7e19f8353..e34217e081 100644 --- a/src/Kestrel/ServerFactory.cs +++ b/src/Kestrel/ServerFactory.cs @@ -46,7 +46,7 @@ namespace Kestrel async frame => { var request = new ServerRequest(frame); - await application.Invoke(request.Features); + await application.Invoke(request.Features).ConfigureAwait(false); })); } disposables.Add(engine); From 23ffc3fea94774e3a2fac46f6a9ff9c5925e535a Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Sun, 19 Jul 2015 15:50:42 +0100 Subject: [PATCH 2/2] ConfigureAwait(false) --- src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs b/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs index 4689db0804..f0126a1414 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs @@ -231,7 +231,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http Exception error = null; try { - await Application.Invoke(this); + await Application.Invoke(this).ConfigureAwait(false); } catch (Exception ex) {