From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by gnuweeb.org (Postfix) with ESMTPSA id E759380C32 for ; Fri, 2 Sep 2022 06:08:59 +0000 (UTC) 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-f177.google.com with SMTP id b26so1199447ljk.12 for ; Thu, 01 Sep 2022 23:08:59 -0700 (PDT) X-Gm-Message-State: ACgBeo3aZV77LuGMs4cQcN0erXSdhOOx8XrjCqBRyssYkSj3z3lkKkb8 C6Z7dl9dBUCgD3MRD1FcTAE1fpZQAxQBYqSxykQ= 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" List-Id: 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