when connecting to something on the local machine, if the machine name or the localhosts entry is /etc/hosts is incorrectly setup, the connection process can take an extra 30 seconds while the socket library performs a DNS lookup that times out.