Re: [quicwg/base-drafts] Unidirectional Streams (#643)

Martin Thomson <notifications@github.com> Tue, 27 June 2017 00:13 UTC

Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 99D7612EB65 for <quic-issues@ietfa.amsl.com>; Mon, 26 Jun 2017 17:13:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.8
X-Spam-Level:
X-Spam-Status: No, score=-4.8 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-2.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.com
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 YRS5LWnBDC1B for <quic-issues@ietfa.amsl.com>; Mon, 26 Jun 2017 17:13:54 -0700 (PDT)
Received: from o6.sgmail.github.com (o6.sgmail.github.com [192.254.113.101]) (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 07A671201F2 for <quic-issues@ietf.org>; Mon, 26 Jun 2017 17:13:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=s+7w5yju4Dr5fYyYS6kuqM2D+KE=; b=Dm+L2/jt4ZKrKLax RRTJVkzpCVkro+tctSLD2X/7jx3S74xXGFbMtkhZ2eOCgZ2ryuRZBu0L8riupvp5 l+wPIbesL130Y0y+f35iSnGYQ6eML+FGmQKy22EXmrbOznav1NdSIuwFOEo6rBhx YnqycB/EhOEAcDESLI7+dMiftYA=
Received: by filter0972p1mdw1.sendgrid.net with SMTP id filter0972p1mdw1-21070-5951A340-37 2017-06-27 00:13:52.956494544 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id 5eykgRfNSV2MsLwwmDPGFQ for <quic-issues@ietf.org>; Tue, 27 Jun 2017 00:13:52.969 +0000 (UTC)
Date: Mon, 26 Jun 2017 17:13:52 -0700
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abd307d33ef86946b349d5caf9e4a6667d7a53e28792cf000000011569654092a169ce0e21ecbf@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/643/review/46417011@github.com>
In-Reply-To: <quicwg/base-drafts/pull/643@github.com>
References: <quicwg/base-drafts/pull/643@github.com>
Subject: Re: [quicwg/base-drafts] Unidirectional Streams (#643)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5951a340d8bdc_a023fc812a0bc382699f9"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2Fb7+veyeUqojtOR5O0Rf/3GL1045JJOuCQ8 3nbFa4SWZfHop669w2CG0ji0OQ4xnweLHCsY2pZ32r9kxRlFgcFkFAJgAjL38CSPVXpuJzOiUVD8qY FIJOHz78CYPri8/ixu+yTbFeLBKnf9YXKN1iLdvUe0Avj5u0D0R/SSm0ILyX/fkLQMeqXOnnSzTuqE c=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/9JWjeXc-Va9m8kiDpQ3URxdmQtM>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jun 2017 00:13:56 -0000

martinthomson commented on this pull request.



> -
-An HTTP request/response exchange fully consumes a pair of streams. After
-sending a request, a client closes the streams for sending; after sending a
-response, the server closes its streams for sending and the QUIC streams are
-fully closed.
+response may contain zero or more header blocks on the response stream
+containing the message headers of informational (1xx) HTTP responses (see
+{{!RFC7230}}, Section 3.2 and {{!RFC7231}}, Section 6.2).
+
+A message that contains a payload body includes a HAS_BODY frame immediately
+after the first header block.  This indicates that another stream will include
+the payload body.  A data stream is opened to carry the payload body.  The data
+stream MUST be closed immediately after sending the body.  If the message does
+not contain a body, a data stream MUST NOT be opened and the HAS_BODY message
+MUST NOT be sent.  The "chunked" transfer encoding defined in Section 4.1 of
+{{!RFC7230}} MUST NOT be used.

I wanted to be able to create the body at any time, without knowing what stream might be used.  It's a minor thing, but it also keeps all pointers as back references.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/643#discussion_r124152211