From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id BCEDC3858D28 for ; Tue, 11 Apr 2023 20:35:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BCEDC3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-x332.google.com with SMTP id cp25-20020a056830661900b00693ce5a2f3eso4474569otb.8 for ; Tue, 11 Apr 2023 13:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681245314; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JXJ65SXQDw6raUnFPSpu9QYCXKxPf1alhfXL/p2mXso=; b=iHSDo837E0NW8DJNaX4Rtbz2K2f/SbBMv3lvknb5/vxg/IHMQz635ncQXc++1FpG57 pTS0wtxSd0t6oUeK0QUstDOROHlCyKIV73X3H7wzERxAot1glT3YZVLX+cd3vUZ4pxxo lAvbokFmS8sXz8zk3BipDj0R1XoNYvof6BE8QwAANkO+NQdH+zIeTdbpukyRBqcbeHdj VzZtf+CZVtrJzmAqkgUq6IZ/qMnp3HEJTkpESlLANcwshJXh4lFA0gHcAFkrMMMVv5Md IZeh/aki6ybtpbzUlyt45h/dMJ10zxeaJjvjQprTg4tGP9s1vMchuRaXAByZ56GrwSnA pSZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681245314; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JXJ65SXQDw6raUnFPSpu9QYCXKxPf1alhfXL/p2mXso=; b=dtcV7rYLyiGToiLCJrp2WTOqRtpF2KFd/PkmGlDOErsAqD+cNPnYi2UrJsC5KBVorT E93mrh/GX4AiYt6aPj8RjUEjRoekx1ndwg3TwF2GdsMQYGsZysftETCLa8XPH4XtaUUv ibTn+AxCvi3NlEQKPqLuoPbvZlyJBFLhlQDcR8kbGyNf0OEL9m46NDHZeToDDkNWEXaE HL/Do50sUknx4Z+zRWmUNrboEWMjKHXzrTeCEKdnFxLCaA8FdGpXfkLIOngOqSA2rMm5 sVjcla+FlRfhBRIp/V5P4GqA+C9xsmOFrr5k6gWWQIszMX1V5ifN1Lx6tGajVYa6O7Br 5b3A== X-Gm-Message-State: AAQBX9e8bspwGTbEHodvsh2TcxNJ39oj1xME0nyd5dimU028RGHvH/r/ Xh+nwfITaVAxnNElvPIziqlYi9qvKO6lvOpezLELeeGW X-Google-Smtp-Source: AKy350Z8HFMGQXrbHpFKNeNa6VANUcBLrqtWmGVeod2RYAgFKQB4QO653Liopjh3d/UkbqIvOex6IQWMTEhz7OEou2o= X-Received: by 2002:a05:6830:1bdc:b0:696:f275:a60d with SMTP id v28-20020a0568301bdc00b00696f275a60dmr4077173ota.7.1681245313999; Tue, 11 Apr 2023 13:35:13 -0700 (PDT) MIME-Version: 1.0 References: <20230319151017.531737-1-bugaevc@gmail.com> <20230319151017.531737-26-bugaevc@gmail.com> <20230410220311.fecuaj4gicx3hh5l@begin> <20230411201528.pijuosntav2jcskh@begin> In-Reply-To: <20230411201528.pijuosntav2jcskh@begin> From: Sergey Bugaev Date: Tue, 11 Apr 2023 23:35:03 +0300 Message-ID: Subject: Re: [RFC PATCH glibc 25/34] hurd: Improve reply port handling when exiting signal handlers To: Samuel Thibault Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Apr 11, 2023 at 11:15=E2=80=AFPM Samuel Thibault wrote: > > Sergey Bugaev, le mar. 11 avril 2023 10:44:17 +0300, a ecrit: > > On Tue, Apr 11, 2023 at 1:03=E2=80=AFAM Samuel Thibault wrote: > > > I tend to be very cautious with reply port reuse since it can confuse > > > servers a lot when e.g. interrupted, so it's generally safer not to t= ry > > > to reuse them. > > > > Huh? Confuse how? > > On interruption, it's hard to know whether the server will actually send > a message on the reply port or not, in the end. So if you re-use a reply > port but unfortunately the server sent a reply on it in the end, you get > all reply messages shifted. Yes, but this is confusing the client, not the server. But I agree that we must destroy the port on which we have made an RFC but have not received a reply. This isn't unique to interruptions, it's a general thing with msg recv timing out. Sergey