Ensure the the hostname -> ip-address DNS resolution is done every time a socket is created.
Add support for socket connectTimeout configuration with a default value of 500ms.