Issue #154: Sending a response before the request is complete

James M Snell <jasnell@gmail.com> Sat, 29 June 2013 05:36 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C470221F9E63 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Jun 2013 22:36:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f4+WBm7Uanw0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Jun 2013 22:36:29 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 27F1521F9E65 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 28 Jun 2013 22:36:29 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Usnpd-0001oJ-Mt for ietf-http-wg-dist@listhub.w3.org; Sat, 29 Jun 2013 05:36:21 +0000
Resent-Date: Sat, 29 Jun 2013 05:36:21 +0000
Resent-Message-Id: <E1Usnpd-0001oJ-Mt@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UsnpQ-0001lR-5p for ietf-http-wg@listhub.w3.org; Sat, 29 Jun 2013 05:36:08 +0000
Received: from mail-ob0-f179.google.com ([209.85.214.179]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UsnpP-0000Wd-Gj for ietf-http-wg@w3.org; Sat, 29 Jun 2013 05:36:08 +0000
Received: by mail-ob0-f179.google.com with SMTP id xk17so2659881obc.10 for <ietf-http-wg@w3.org>; Fri, 28 Jun 2013 22:35:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=GUhkFUkYXnPNEypQKA5y6VQEi7E/MV/Q4uWJLViJqsk=; b=gt88Sd5jDGmiyEwsv6gi3SRGuHmvjg+KbYkjyyejSzMaigt+WxFRd99oHxVbiwYWLj WBToRt8KM0DKPrMaMw9YtWme7eZZfaBT+xU3Vq6GgMlX/ldf6wnTNbLQcQVi7Hv0HTI5 q2NvfRME/KEtNtW1iH15PoS6AA9w93GDk2X9LtgjzO6Z0aProSeswfl05kvanHDJ3Bm1 F8yvlkIjlgN77J7+x+s42LsnIr7rKXs/EMlbU48c0WiFEHgOyXwscF+TF4rRCpWjNAeq gubwFGua/cIJPcCSXMVxW3+NuU65FTNmRxWK0R8WC+FEbxAEs947rHvsMVAt7RyhUEXP BeeQ==
X-Received: by 10.60.125.100 with SMTP id mp4mr790470oeb.60.1372484141322; Fri, 28 Jun 2013 22:35:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.55.8 with HTTP; Fri, 28 Jun 2013 22:35:21 -0700 (PDT)
From: James M Snell <jasnell@gmail.com>
Date: Fri, 28 Jun 2013 22:35:21 -0700
Message-ID: <CABP7RbcAWkm9uqkQt2dsYYnHw40ax7mM7GEjLDE8uBn4pn-4Pg@mail.gmail.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.214.179; envelope-from=jasnell@gmail.com; helo=mail-ob0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.687, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UsnpP-0000Wd-Gj 3102cc1ae9a2fbe5184da50f185eca58
X-Original-To: ietf-http-wg@w3.org
Subject: Issue #154: Sending a response before the request is complete
Archived-At: <http://www.w3.org/mid/CABP7RbcAWkm9uqkQt2dsYYnHw40ax7mM7GEjLDE8uBn4pn-4Pg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18409
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

https://github.com/http2/http2-spec/issues/154

Suggested add to the HTML mapping...

---
The server MUST NOT begin sending the response header block
until it receives all of the request headers from the
client; however, the server MAY begin sending the response
immediately after receiving the request headers without waiting
for the complete request payload or trailers to be received.
---

Since we added HEADER continuations, there is a risk that a server
might begin its response to a request prematurely, without waiting for
the complete set of headers to be received. Doing so could cause quite
a few major issues including caching problems.

While this is not something that we can strictly enforce as a MUST, it
is something that servers really ought to do.