From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 270A2ECAAA1 for ; Fri, 2 Sep 2022 06:09:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235363AbiIBGJC (ORCPT ); Fri, 2 Sep 2022 02:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235403AbiIBGJB (ORCPT ); Fri, 2 Sep 2022 02:09:01 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AC43B9F9B for ; Thu, 1 Sep 2022 23:09:00 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by gnuweeb.org (Postfix) with ESMTPSA id EA50680C44 for ; Fri, 2 Sep 2022 06:08:59 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1662098939; bh=PiaEYF9V4R1/VV1YtAFSzk79pFqLN+y5TIiv+FSE56s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FoxacsGyRqlOMscLly2xCJoUqIOP6vmlo0jDryUQ7Er8OYVgk962JXQwI1YiNMyYF zixVTcaRCxub5w98y1jVoMinf8SUghThkEHncbazlUDfyyCLLlI98PjwH3qNqNfy2C VG/qK+gzqyev/TiwjWKcI0F2cYtjQ2J+8+OIAAujDDAn6+PEvy7Xyjhh51AvqDWsy9 kIGW2Zb5IfwhkGaudqOLeh7H9dU2AP1uxbl8Jssys5Si1s5QRQz8Z1I3pKNXqhXzl+ rW8ivJHwyh+3fbn/OYuTqpC/indagkYGopIQ7HxHbYDfu0pKHHoVxJvHGnuWZ/3BT4 CHZPgEeVu5DKg== Received: by mail-lj1-f175.google.com with SMTP id k22so1248532ljg.2 for ; Thu, 01 Sep 2022 23:08:59 -0700 (PDT) X-Gm-Message-State: ACgBeo2tNesjZ8pEGr2IUiegYsGmMCaMoRNjlugEsojDgbGkk6bKsOzX GjcG0nzrI+8BNhY7xcz3kki+wIVHpOR0NWU5yrg= X-Google-Smtp-Source: AA6agR57RRvbPcbubO/dVy33aUkXLDWqXt/0LwfbblGLuGTqWtIXf30RJIz9/yGOjHtxdQ8W1W7lexTMnPpw0XkDiC0= X-Received: by 2002:a05:651c:1110:b0:268:982a:8805 with SMTP id e16-20020a05651c111000b00268982a8805mr3014608ljo.394.1662098938087; Thu, 01 Sep 2022 23:08:58 -0700 (PDT) MIME-Version: 1.0 References: <20220902011548.2506938-1-ammar.faizi@intel.com> <20220902011548.2506938-5-ammar.faizi@intel.com> In-Reply-To: <20220902011548.2506938-5-ammar.faizi@intel.com> From: Alviro Iskandar Setiawan Date: Fri, 2 Sep 2022 13:08:46 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH liburing v1 04/12] t/socket-rw-eagain: Don't brute force the port number To: Ammar Faizi Cc: Jens Axboe , Dylan Yudaken , Facebook Kernel Team , Pavel Begunkov , io-uring Mailing List , "GNU/Weeb Mailing List" , Kanna Scarlet , Muhammad Rizki Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Fri, Sep 2, 2022 at 8:18 AM Ammar Faizi wrote: > From: Ammar Faizi > > Don't brute force the port number, use `t_bind_ephemeral_port()`, > much simpler and reliable for choosing a port number that is not > in use. > > Cc: Dylan Yudaken > Cc: Facebook Kernel Team > Cc: Pavel Begunkov > Signed-off-by: Ammar Faizi Reviewed-by: Alviro Iskandar Setiawan tq -- Viro