Re: [core] Stateless proxy and 5.04 (Gateway Timeout)

Klaus Hartke <hartke@projectcool.de> Wed, 20 November 2019 14:11 UTC

Return-Path: <hartke@projectcool.de>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 99A981208F1 for <core@ietfa.amsl.com>; Wed, 20 Nov 2019 06:11:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0TMd3XkzOzS6 for <core@ietfa.amsl.com>; Wed, 20 Nov 2019 06:11:06 -0800 (PST)
Received: from wp382.webpack.hosteurope.de (wp382.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8597::]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BAD2A1208D0 for <core@ietf.org>; Wed, 20 Nov 2019 06:11:06 -0800 (PST)
Received: from mail-qt1-f172.google.com ([209.85.160.172]); authenticated by wp382.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1iXQhD-0006uF-Cq; Wed, 20 Nov 2019 15:11:03 +0100
Received: by mail-qt1-f172.google.com with SMTP id o49so29049124qta.7 for <core@ietf.org>; Wed, 20 Nov 2019 06:11:03 -0800 (PST)
X-Gm-Message-State: APjAAAXaFuU6fDhf+NAhQAvNMABffM4TSIFl/JN6O1i7qk4mjYupBhI4 AZgutVCuU6fg+qtk40v8AjgMS7fw1RMFrZH/vu0=
X-Google-Smtp-Source: APXvYqy/KvbhThws7xkf5wV6ipK6Hdzfq0m2LCC5rbzPEFc9Cwjs1s10h3iYohw7ct3dyZzRYtaR41+GKGaYLh6P23M=
X-Received: by 2002:ac8:382e:: with SMTP id q43mr2743888qtb.174.1574259062336; Wed, 20 Nov 2019 06:11:02 -0800 (PST)
MIME-Version: 1.0
References: <998D003E-7C31-44A7-8FFE-C4E88F678CA3@ericsson.com> <20191103144653.GB11679@hephaistos.amsuess.com>
In-Reply-To: <20191103144653.GB11679@hephaistos.amsuess.com>
From: Klaus Hartke <hartke@projectcool.de>
Date: Wed, 20 Nov 2019 15:10:26 +0100
X-Gmail-Original-Message-ID: <CAAzbHvbp74XuWf8-J4yvnho=7nyHxnocVtUGSeVoNN5ijn+TBA@mail.gmail.com>
Message-ID: <CAAzbHvbp74XuWf8-J4yvnho=7nyHxnocVtUGSeVoNN5ijn+TBA@mail.gmail.com>
To: Christian Amsüss <christian@amsuess.com>
Cc: Christer Holmberg <christer.holmberg=40ericsson.com@dmarc.ietf.org>, "core@ietf.org" <core@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-bounce-key: webpack.hosteurope.de; hartke@projectcool.de; 1574259066; f7c4f181;
X-HE-SMSGID: 1iXQhD-0006uF-Cq
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/EHQeK-_-K3KZo0OIh1XMIuhSqU0>
Subject: Re: [core] Stateless proxy and 5.04 (Gateway Timeout)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Nov 2019 14:11:07 -0000

Christian Amsüss wrote:
> I would not expect a stateless proxy to generate 5.04 errors after a
> timeout after sending a request.

RFC 7252 [1] is actually quite strict on that, though:

   If the request to the destination times out, then a 5.04 (Gateway
   Timeout) response MUST be returned.

It seems we need to override that MUST if we want to allow "stateless"
intermediaries...

Klaus

[1] https://tools.ietf.org/html/rfc7252#section-5.7.1