[Http]: Fix a potential race condition in the WebConnectionGroup's connection list.
authorMartin Baulig <martin.baulig@xamarin.com>
Wed, 11 Jun 2014 16:50:47 +0000 (18:50 +0200)
committerMartin Baulig <martin.baulig@xamarin.com>
Wed, 11 Jun 2014 17:07:15 +0000 (19:07 +0200)
commitbad5ef8453b25f9bf7e31487b37153e5a35669e8
tree7435b18e9857381df885cb210879cee86c5f1f04
parent7347c5a19518ab5512fda27f2f209155755a9dc7
[Http]: Fix a potential race condition in the WebConnectionGroup's connection list.

Remove the "ConnectionState" from the connection list before closing the connection,
this should avoid ServicePoint.SendRequest() ever crashing with a NullReferenceException
due to getting a null return value from WebConnectionGroup.GetConnection().
mcs/class/System/System.Net/WebConnectionGroup.cs