socket nonblock only when trying to connect