SSL connections were deadlocking when getting the service point for the
connection in the last few releases of 2.10.x and in master.
Fixes bug #4599.
public ServicePoint ServicePoint {
get { return GetServicePoint (); }
}
+
+ internal ServicePoint ServicePointNoLock {
+ get { return servicePoint; }
+ }
public override int Timeout {
get { return timeout; }
ServicePoint sp = null;
HttpWebRequest req = sender as HttpWebRequest;
if (req != null)
- sp = req.ServicePoint;
+ sp = req.ServicePointNoLock;
if (status11 == 0 && errors != 0)
status11 = GetStatusFromChain (chain);