[runtime] Always expire a non-resolved hostname's cache
authorAlexander Kyte <alkyte@microsoft.com>
Mon, 19 Dec 2016 20:03:21 +0000 (15:03 -0500)
committerMarek Safar <marek.safar@gmail.com>
Wed, 21 Dec 2016 10:06:03 +0000 (11:06 +0100)
commitb8625e671a92fb09d24e973b57aa7033e2bd9513
tree57862493d3da8ece97407a4d4aa6d340cd42b4c4
parentedea0795cfb5915b490051d5f0c473e7acdaf9b5
[runtime] Always expire a non-resolved hostname's cache

This addresses a regression here:

https://bugzilla.xamarin.com/show_bug.cgi?id=45761

The commits
97e51abfcfd87bb5ed12c04df030730a8590cbed and
d35b5d218894e15cec84273d77cf4a61985edb5f

changed control flow such that if the host can't be resolved
and host is set to null, then the later check will return null
for the duration that HasTimedOut is false.
mcs/class/System/System.Net/ServicePoint.cs