Imported Upstream version 4.4.0.40

Former-commit-id: 6427cc082e74df30afc535fd906a3494b74b0817
This commit is contained in:
Xamarin Public Jenkins
2016-03-16 12:38:19 -04:00
parent f3e3aab35a
commit a632333cc7
110 changed files with 1496 additions and 556 deletions

View File

@ -593,6 +593,7 @@ namespace System.Net
CheckRequestStarted ();
proxy = value;
servicePoint = null; // we may need a new one
GetServicePoint ();
}
}
@ -969,11 +970,17 @@ namespace System.Net
}
}
if (!requestSent) {
if (requestSent)
return;
try {
requestSent = true;
redirects = 0;
servicePoint = GetServicePoint ();
abortHandler = servicePoint.SendRequest (this, connectionGroup);
} catch (Exception ex) {
aread.SetCompleted (synch, ex);
aread.DoCallback ();
}
});