Re: [core] FW: Question on RFC 7252

Carsten Bormann <cabo@tzi.org> Thu, 04 February 2016 08:22 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 837EE1A1B00 for <core@ietfa.amsl.com>; Thu, 4 Feb 2016 00:22:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
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 WyJLm_DdtJK0 for <core@ietfa.amsl.com>; Thu, 4 Feb 2016 00:22:31 -0800 (PST)
Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:c:538::196]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F8591A0363 for <core@ietf.org>; Thu, 4 Feb 2016 00:22:31 -0800 (PST)
Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id CEA021720A1; Thu, 4 Feb 2016 09:22:29 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter14-d.gandi.net
Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter14-d.gandi.net (mfilter14-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 4vbySiOd8pC0; Thu, 4 Feb 2016 09:22:28 +0100 (CET)
X-Originating-IP: 93.199.254.229
Received: from nar.local (p5DC7FEE5.dip0.t-ipconnect.de [93.199.254.229]) (Authenticated sender: cabo@cabo.im) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C37AE1720B3; Thu, 4 Feb 2016 09:22:27 +0100 (CET)
Message-ID: <56B30A42.8080001@tzi.org>
Date: Thu, 04 Feb 2016 09:22:26 +0100
From: Carsten Bormann <cabo@tzi.org>
User-Agent: Postbox 4.0.8 (Macintosh/20151105)
MIME-Version: 1.0
To: Jim Schaad <ietf@augustcellars.com>
References: <02a701d15f1c$7428d0d0$5c7a7270$@augustcellars.com>
In-Reply-To: <02a701d15f1c$7428d0d0$5c7a7270$@augustcellars.com>
X-Enigmail-Version: 1.2.3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/RSJCb5h-6fADPdAEpGKhAcaMRrM>
Cc: core@ietf.org
Subject: Re: [core] FW: Question on RFC 7252
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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: Thu, 04 Feb 2016 08:22:33 -0000

Hi Jim,

> In section 2.2, these is discussion dealing with figure 5 about how to deal
> with the case where a server can perform an operation, but it may take a
> while to do and it does not want the client to continually send it messages
> or time out waiting for a response.  The solution presented requires that a
> token be present in the original request so that it can be tied to the
> eventual response message. There does not appear to be any text dealing with
> the case of a token not being present.

There is always a token present (it may be zero-length, but an empty
token is still a token that is distinguishable from all other tokens).

> What is the proper response to say - ask again but make sure there is a
> token in the request this time?  One could start the request processing and
> respond with a 5.03 - service unavailable and an estimate of how long it
> will take to complete the request but that seems wrong some how

That kind of response is different from a separate response as discussed
here and in section 5.2.2.  It may be quite appropriate, e.g. if the
server simply cannot keep request state for the time that it needs to be
able to prepare a response.  (I think you are aware that section 5.9.3.4
suggests using max-age for indicating when a new request should be
attempted.)

> What is the correct response to give if the separate message cannot be sent
> anytime soon because the server already has a message in its cache with the
> message id of the original request?  

Not sure I can parse this.  If the server already has a (request?)
message in its cache with the message id of the original request, it
simply repeats the response it already sent.

> I am assuming, and believe that the
> text in section 4.4 says that messages ids must be unique for the sender to
> a specific address so the changes are low unless the server is using a hit
> cache for multiple recipients.

Message-IDs are per endpoint (peer endpoint in case of receiving a
CON/NON or sending an ACK/RST).

Grüße, Carsten