[WebConnection] Fix race condition between Close and BeginWrite (#4693)
authorLudovic Henry <ludovic@xamarin.com>
Fri, 14 Apr 2017 18:51:42 +0000 (14:51 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2017 18:51:42 +0000 (14:51 -0400)
commit52b00f29220b431fa0270d812668014bc92b2f7e
treec90a691297c7ab15c5171414d243801dfd5738d4
parent462834e6ea925fbc69711fb4ffc6f8b22ab92de8
[WebConnection] Fix race condition between Close and BeginWrite (#4693)

* [WebConnection] Make ReadDone and InitRead instance methods to avoid passing cnc around

* [WebConnection] Inline only call to InitConnection

* [WebConnection] Fix race condition between Close and BeginWrite
mcs/class/System/System.Net/WebConnection.cs
mcs/class/System/System.Net/WebConnectionStream.cs