- try to do network connect with 2 seconds timeout and after that set socket
  to non-blocking mode