I've set alot of spammy and not-wanted websites/google services (hostnames) in my hosts file to localhost on Windows 7 x64 but the timeout of connecting to localhost (port 80 in this case) is about 2 seconds which causes irritating waiting times on some websites because it's waiting to load external services.



Is it possible to decrease the timeout for a particular port, 80 in this case? I want no timeout at all, just an immediate failure response.

As an example the following test method should not wait but give the error immediately

C:\>telnet localhost 80
Connecting To localhost... <-waiting around 2 secs-> Could not open connection to the host, on port 80: Connect failed