Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorVictor H. Maksimenko <victor@spokoy.com>2013-03-24 00:29:48 +0400
committerVictor H. Maksimenko <victor@spokoy.com>2013-03-24 00:29:48 +0400
commit1a6f502f565a79c453ebefea521327907fb52efa (patch)
treeec5534aa4c3c1c793bcaf42bfd2a4b47f625e5e0 /mcs
parent605e4d6313259e649542e1ba8aff8326027d9b36 (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.cs2
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);
}