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-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by gnuweeb.org (Postfix) with ESMTPSA id DCEF280C2F for ; Fri, 2 Sep 2022 06:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1662099489; bh=PiaEYF9V4R1/VV1YtAFSzk79pFqLN+y5TIiv+FSE56s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=No1Dmn90RulE759qPJz3aXb5367RvQSgqT48aYECAQh5F78OHlDt/cehJB7Kl1wsJ aa2ecKxlKdmOncucH+FE0M2RP3IbwCuKZqnHxbMxpziAQyss4KwFo/vxm+KDuGwTpW jZnluJ8ejCEVR3UFXQCogvo4Ml+gF2tUbk0soXjCAIBEjiECQh+zmHejWY7Q+nSgIk PIWVMx/A1Mh5fo/KgZQTwBNZGweDeVY548qLdFTrDMjw/yvLI5xJ2w9OLtfMBNLabp VjeR5huZyhXbfK0tHUp1UTH8kLOSk8kF4FtyhTzrM7Ed8EzLYZYk2x9MF3hP5qwHT+ lOXemzL0UTHhg== Received: by mail-lj1-f169.google.com with SMTP id b26so1215696ljk.12 for ; Thu, 01 Sep 2022 23:18:09 -0700 (PDT) X-Gm-Message-State: ACgBeo30PtvLjUeUXSlJGrZ3CizS2KAbNDjUDeb+/oHfxa3I6iYc7MJC 3D8oYv1DQO5dfzWwJPxB9Z/8OVQsrnZc4Z9KPig= X-Google-Smtp-Source: AA6agR6zfCQP/9HHkYOrM55z0/zgdQAjMm37PIgcnfNBqEnUpQbQG+HwWgRQyIeWdD5dHICA/1z2EcoZfERLOBkaDvQ= X-Received: by 2002:a05:651c:238d:b0:268:b732:6b63 with SMTP id bk13-20020a05651c238d00b00268b7326b63mr1870738ljb.75.1662099488049; Thu, 01 Sep 2022 23:18:08 -0700 (PDT) MIME-Version: 1.0 References: <20220902011548.2506938-1-ammar.faizi@intel.com> <20220902011548.2506938-6-ammar.faizi@intel.com> In-Reply-To: <20220902011548.2506938-6-ammar.faizi@intel.com> From: Alviro Iskandar Setiawan Date: Fri, 2 Sep 2022 13:17:56 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH liburing v1 05/12] t/socket-rw-offset: 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