[System]: WebConnection: improve chunked reads and async callbacks.
commit77e1889d2032a84cda6fda754821e0b66b44c42e
authorMartin Baulig <martin.baulig@xamarin.com>
Fri, 22 May 2015 03:11:14 +0000 (22 05:11 +0200)
committerMartin Baulig <martin.baulig@xamarin.com>
Wed, 14 Oct 2015 19:18:27 +0000 (14 15:18 -0400)
tree5f9e4322980cb10bef1f567dd379499ffcfd0fbf
parent2de86c3cee744912bddcd7d2efe173594b3c8520
[System]: WebConnection: improve chunked reads and async callbacks.

Make sure we always complete the async operations on error and
also send callbacks outside the lock.

(cherry picked from commit 9027f0ad28bf733ebb8ac9964c78c22853ca93c7)
mcs/class/System/System.Net/SimpleAsyncResult.cs
mcs/class/System/System.Net/WebAsyncData.cs [new file with mode: 0644]
mcs/class/System/System.Net/WebAsyncResult.cs
mcs/class/System/System.Net/WebConnection.cs
mcs/class/System/System.Net/WebConnectionStream.cs
mcs/class/System/System.dll.sources
mcs/class/System/mobile_System.dll.sources