diff options
author | Victor H. Maksimenko <victor@spokoy.com> | 2013-03-24 00:29:48 +0400 |
---|---|---|
committer | Victor H. Maksimenko <victor@spokoy.com> | 2013-03-24 00:29:48 +0400 |
commit | 1a6f502f565a79c453ebefea521327907fb52efa (patch) | |
tree | ec5534aa4c3c1c793bcaf42bfd2a4b47f625e5e0 /mcs | |
parent | 605e4d6313259e649542e1ba8aff8326027d9b36 (diff) |
use the GetRequestStreamAsync method to avoid blocking on HttpClientHandler SendAsync
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs index eb336f70d87..bd868f9776d 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs @@ -308,7 +308,7 @@ namespace System.Net.Http } } - var stream = wrequest.GetRequestStream (); + var stream = await wrequest.GetRequestStreamAsync (); await request.Content.CopyToAsync (stream).ConfigureAwait (false); } |