fix: protecting tcp connect phase against low-level syscall errors
such as network unreachable, which can happen if connectivity is lost meanwhile.
native resolver: fix for nameserver switch not happening in case of DNS timeout.
when more than a nameserver was advertised by the system.
Removing usage of deprecated