Use non-blocking socket only when connecting.