Re: Why allow empty STREAM frames when offset is zero?

Patrick McManus <pmcmanus@mozilla.com> Thu, 10 May 2018 19:02 UTC

Return-Path: <pmcmanus@mozilla.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 2CFDD12EB7E for <quic@ietfa.amsl.com>; Thu, 10 May 2018 12:02:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.233
X-Spam-Level:
X-Spam-Status: No, score=-1.233 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no 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 up8KWkGWSDwy for <quic@ietfa.amsl.com>; Thu, 10 May 2018 12:01:58 -0700 (PDT)
Received: from linode64.ducksong.com (www.ducksong.com [192.155.95.102]) by ietfa.amsl.com (Postfix) with ESMTP id D4B1512EB8D for <quic@ietf.org>; Thu, 10 May 2018 12:01:28 -0700 (PDT)
Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by linode64.ducksong.com (Postfix) with ESMTPSA id 7AC583A055 for <quic@ietf.org>; Thu, 10 May 2018 15:01:26 -0400 (EDT)
Received: by mail-oi0-f53.google.com with SMTP id v2-v6so2700480oif.3 for <quic@ietf.org>; Thu, 10 May 2018 12:01:26 -0700 (PDT)
X-Gm-Message-State: ALKqPwc5afo+dGBzegrjvLYXylc0d8m6E9S80PEHhaB8qvqfXh9psfTB YcStyEHT0r55+nqurl+Z11j2Ol8QK+gqs7f6cuw=
X-Google-Smtp-Source: AB8JxZrklaXduhscSHUrI7kuOtEu9d1oZDvTqiOVcRx7NrCjusdICjZLJVpUOADCNy6Rqs8CX85wQvKQLHuWjUADJ6c=
X-Received: by 2002:aca:ccd4:: with SMTP id c203-v6mr1596267oig.38.1525978886206; Thu, 10 May 2018 12:01:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.74.138.36 with HTTP; Thu, 10 May 2018 12:01:25 -0700 (PDT)
In-Reply-To: <20180510184505.GA23837@ubuntu-dmitri>
References: <20180510180509.GA2505@ubuntu-dmitri> <SN1PR08MB18543D4C234CC672616E37BFDA980@SN1PR08MB1854.namprd08.prod.outlook.com> <20180510184505.GA23837@ubuntu-dmitri>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 10 May 2018 21:01:25 +0200
X-Gmail-Original-Message-ID: <CAOdDvNpM0hSH9Qzm2qbXcfyYdUGAT5Sg373NPcV2B4WC2ebzmg@mail.gmail.com>
Message-ID: <CAOdDvNpM0hSH9Qzm2qbXcfyYdUGAT5Sg373NPcV2B4WC2ebzmg@mail.gmail.com>
Subject: Re: Why allow empty STREAM frames when offset is zero?
To: Mike Bishop <mbishop@evequefou.be>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000727c35056bdea592"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/L63VqAjP6DD-CUnV7rzPWtJe9Aw>
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 19:02:00 -0000

maybe its the only way to get more stream id flow control credits :)

On Thu, May 10, 2018 at 8:45 PM, Dmitri Tikhonov <
dtikhonov@litespeedtech.com> wrote:

> Is there a real-life use case that is implied here?  I can't see why it
> would be useful.
>
> On the other hand, it creates an odd situation for an implementation:
> a frame has arrived, yet the higher layer cannot read from it yet, so
> an incoming stream is unreadable.
>
> On Thu, May 10, 2018 at 06:25:55PM +0000, Mike Bishop wrote:
> > If you want to open a stream (e.g. permit data to be sent in the
> opposite direction of a bidirectional stream), but don't actually have data
> ready to send yet.
> >
> > -----Original Message-----
> > From: QUIC [mailto:quic-bounces@ietf.org] On Behalf Of Dmitri Tikhonov
> > Sent: Thursday, May 10, 2018 11:05 AM
> > To: IETF QUIC WG <quic@ietf.org>
> > Subject: Why allow empty STREAM frames when offset is zero?
> >
> > [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.
> >
>
>