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-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by gnuweeb.org (Postfix) with ESMTPSA id 5B1F580C32 for ; Fri, 2 Sep 2022 06:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1662099618; bh=PiaEYF9V4R1/VV1YtAFSzk79pFqLN+y5TIiv+FSE56s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mnNkN92uJXdo3xqbEP36Sw3HyUsy03SKZfGbzIFp0w+ynPaUGxLe3ORP9gajbYLYH GuiUesPOYaerWmLQSY/MwHFTGf75+ZJSEIQVcSbpZ7KEbRip1mSceQeYwq5gDqp/UN K8vLEF5p1dDeQJI++aCSZ/RIPnc3p2C2I8ZHi4DgSySYPSPDgdNuKVe0sYbZ4VdPoC 9f+OfKAOnYRPhMSno3dbnANVNsMIFhOQBSPvsVd/jVgMICdbiF9wt/zu4Q4qtTqSot kyMIlMWtaG2CpXvIWAah9H3gPMY4zAovCeZBwOmBFILBqnMSkZti7p4LlieDL8b1Zb aWhuy0RBBkZMg== Received: by mail-lj1-f175.google.com with SMTP id k18so1210115lji.13 for ; Thu, 01 Sep 2022 23:20:18 -0700 (PDT) X-Gm-Message-State: ACgBeo0SuVr6qFejmSTMVTMv2mlFff6tHGTK3u3K4jUjF5567pzs89IO mMsUQCu2mY9hCC57Rmnw3LWHi75mAfK4UaDDTRw= X-Google-Smtp-Source: AA6agR7GW23Xy3Ac1fkxma7INLS6VSFes+RjSQ46zy8JJSkGpawwqWwAoHocdoi3b8NJFhvzqMnwbce2b9+qdL2kQtg= X-Received: by 2002:a2e:b8ce:0:b0:261:ada1:d803 with SMTP id s14-20020a2eb8ce000000b00261ada1d803mr10016692ljp.143.1662099616566; Thu, 01 Sep 2022 23:20:16 -0700 (PDT) MIME-Version: 1.0 References: <20220902011548.2506938-1-ammar.faizi@intel.com> <20220902011548.2506938-7-ammar.faizi@intel.com> In-Reply-To: <20220902011548.2506938-7-ammar.faizi@intel.com> From: Alviro Iskandar Setiawan Date: Fri, 2 Sep 2022 13:20:05 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH liburing v1 06/12] t/files-exit-hang-poll: 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