Why allow empty STREAM frames when offset is zero?

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Thu, 10 May 2018 18:05 UTC

Return-Path: <dtikhonov@litespeedtech.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5ED1412EB63 for <quic@ietfa.amsl.com>; Thu, 10 May 2018 11:05:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=litespeedtech-com.20150623.gappssmtp.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 UkhgTtTOKmNf for <quic@ietfa.amsl.com>; Thu, 10 May 2018 11:05:37 -0700 (PDT)
Received: from mail-qt0-x22b.google.com (mail-qt0-x22b.google.com [IPv6:2607:f8b0:400d:c0d::22b]) (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 8097012EC1A for <quic@ietf.org>; Thu, 10 May 2018 11:05:31 -0700 (PDT)
Received: by mail-qt0-x22b.google.com with SMTP id e8-v6so3742193qth.0 for <quic@ietf.org>; Thu, 10 May 2018 11:05:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=3Qb0Nq09tfvmiFNAAeOoFvc/6JGboNyfERIf028Z4Nc=; b=1qoEXycneQMdCHwXSNnlPNE/awhQNTjon6PvWEViQz8Lj4K343e9aWYpYIwztAYiCn XgQMWHHxaLiqQNvnbOs3p9xd7eebYfO3gE2+j/tHlkNSU9hxzZ29So9Xy9LLw75DhQeu qhhn4Mfs9Ub6mvb5VVUot0kw44s+pQmdkG62hfnBpY8LsXCQnYbKpbkPf/Ug7BvoxLVN XF1075gJakQjPUASKgxwtUdpYHh9G1v92avt5MIdrOec6yzwzGHn5QdCbQZaot/8ezrd /bnUSZlZO5dYuiwHkz+gWjTgnFuf+wOINuFkw01N0DkZzBC0ok9yrZZuIifwr52eq8SU ea8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=3Qb0Nq09tfvmiFNAAeOoFvc/6JGboNyfERIf028Z4Nc=; b=GdO4kRSm4hGiqW694sJZyUkK7syWjNA4F3+rmOXwfUhpKChRO3PmMwWxSYmVI2VquW 3DbYmktSH3yTqMlzRrh2jdKLxoFiu4742flf8oVkjaSTJbETRwvKXOgY31O9Y3HLqKRG +q4pJREDvOAKRMih2uUw7udBvubiS5gpGWsWJwkBoymJIG9bNY3m8GTDq+Z/EiuRS0hV Hs52spwFwSE3RrjCZ/WXNQ/Mclg1M3/uihEf3N5EbEpC18g3Hsj6NvHKjXyIPVgqnbHl POSRlSCC8/0PkXoH4cosSyd27HFbEZ3C8CXlByE7UhohTNg9c7hfaRpgAz8d3ip6ymNs EJQw==
X-Gm-Message-State: ALKqPwdDpy49wIwV1qTwTHrZWJhWfTVvSyN3mxuGev83/KLB/KXIO1K7 RZK8J3OArYiTx19KtLPO/9g32HsN
X-Google-Smtp-Source: AB8JxZqAXuwYKC0ydB6sFy9wGEl0TMYFqYutCeoMGFNG99S6DYjsxZvlt/1oz3Yn8DEJJGEy9rSBSA==
X-Received: by 2002:ac8:235c:: with SMTP id b28-v6mr2365585qtb.212.1525975530499; Thu, 10 May 2018 11:05:30 -0700 (PDT)
Received: from ubuntu-dmitri (ool-2f1636b6.static.optonline.net. [47.22.54.182]) by smtp.gmail.com with ESMTPSA id k10-v6sm1050442qkh.95.2018.05.10.11.05.29 for <quic@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 May 2018 11:05:29 -0700 (PDT)
Date: Thu, 10 May 2018 14:05:25 -0400
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: IETF QUIC WG <quic@ietf.org>
Subject: Why allow empty STREAM frames when offset is zero?
Message-ID: <20180510180509.GA2505@ubuntu-dmitri>
Mail-Followup-To: IETF QUIC WG <quic@ietf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/z55Nf2K9EXtTrrj-8ayf9-Yq9xI>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 10 May 2018 18:05:41 -0000

[draft-ietf-quic-transport-11] says the following:

   A stream frame's Stream Data MUST NOT be empty, unless the offset is
   0 or the FIN bit is set.

Why allow empty STREAM frames when the offset is zero?  What is the
purpose?

  - Dmitri.