Re: Range Responses of Indeterminate Length: Draft

Mark Nottingham <mnot@mnot.net> Tue, 13 October 2015 04:43 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 836E31B3762 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Oct 2015 21:43:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 SLP-UNj3eUw1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Oct 2015 21:43:04 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3B0EB1B3757 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 12 Oct 2015 21:43:04 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZlrNs-0002Ac-Kk for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Oct 2015 04:40:20 +0000
Resent-Date: Tue, 13 Oct 2015 04:40:20 +0000
Resent-Message-Id: <E1ZlrNs-0002Ac-Kk@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1ZlrNp-00029q-5m for ietf-http-wg@listhub.w3.org; Tue, 13 Oct 2015 04:40:17 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1ZlrNm-0003mw-3c for ietf-http-wg@w3.org; Tue, 13 Oct 2015 04:40:16 +0000
Received: from [192.168.0.17] (unknown [120.149.147.132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 0C59822E260; Tue, 13 Oct 2015 00:39:49 -0400 (EDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <422A7C30-5DEB-4CFE-8907-C007D0FA9ABE@plex.tv>
Date: Tue, 13 Oct 2015 15:39:46 +1100
Cc: HTTP <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <4BC91465-C1AB-41BF-8395-D726D91CFF93@mnot.net>
References: <F755B212-3186-493F-B298-E529A2502467@plex.tv> <DF498B3A-90B7-4D30-88EA-E312B06F9BC4@mnot.net> <55238972.3020108@it.aoyama.ac.jp> <11A96BCA-924D-45C3-B6CA-3653A3470077@mnot.net> <1F073ED1-5F84-4721-9D27-CC07FE0D457C@plexapp.com> <8D499A32-8141-484C-8E96-02222280C0B7@mnot.net> <3030B260-EAA0-4357-B9F6-3169001EF273@plexapp.com> <64571D1F-E12B-46D8-B95B-F296C642EE4C@mnot.net> <DEB8329F-C110-4CA5-82E1-49083B2C2ED2@plexapp.com> <B64E144F-1DB8-4A42-B059-A8455F01F6E0@mnot.net> <A991B779-9D08-4B04-AF37-FABD038D648B@plexapp.com> <6819E599-B029-4519-A4C3-C620CCE28403@plexapp.com> <5E61A10D-233E-4295-B365-FB17C383D25C@mnot.net> <422A7C30-5DEB-4CFE-8907-C007D0FA9ABE@plex.tv>
To: Rodger Combs <rodger.combs@gmail.com>
X-Mailer: Apple Mail (2.2104)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-8.3
X-W3C-Hub-Spam-Report: AWL=1.323, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1ZlrNm-0003mw-3c 901a6f79ce971464fa7e21e19bf1d404
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Range Responses of Indeterminate Length: Draft
Archived-At: <http://www.w3.org/mid/4BC91465-C1AB-41BF-8395-D726D91CFF93@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30356
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>

Range was designed for very specific use cases -- mostly, AIUI, PDF files. Retrofitting it for streaming media is likely to cause problems. I'd recommend looking at other approaches, such as a manifest-driven one. 

Cheers,


> On 2 Oct 2015, at 4:39 pm, Rodger Combs <rodger.combs@gmail.com> wrote:
> 
> That's a perfectly valid concern about my current spec, but I'd hope that it would be possible to implement this feature in a way that works around that problem. I'm open to any and all suggestions on the topic, and am not at all attached to the current draft's methods. Could a different signaling mechanism help? How do intermediaries handle range requests today?
> 
>> On Oct 1, 2015, at 22:15, Mark Nottingham <mnot@mnot.net> wrote:
>> 
>> Hi Rodger,
>> 
>> As discussed before, I think this is pretty much a non-starter, because an intermediary that doesn't understand this extension will receive Content-Range headers that it will (rightfully) considered malformed. We can't make breaking changes in the syntax or semantics of widely-deployed header fields.
>> 
>> Cheers,
>> 
>> 
>> 
>>> On 2 Oct 2015, at 10:27 am, Plex <rodger.combs@gmail.com> wrote:
>>> 
>>> I've updated https://datatracker.ietf.org/doc/draft-combs-http-indeterminate-range/ to address some minor formatting issues, and complete the IANA Considerations section. Does anyone have any input on this?
>>> 
>>>> On Jun 29, 2015, at 20:28, Plex <rodger@plexapp.com> wrote:
>>>> 
>>>> It's been a while since this thread has seen any movement; anyone have any suggestions on how to move forward on this?
>>>> 
>>>>> On Apr 8, 2015, at 04:43, Mark Nottingham <mnot@mnot.net> wrote:
>>>>> 
>>>>> I did a fairly quick cut-n-paste; feel free to correct/elaborate in the bugs.
>>>>> 
>>>>> Cheers,
>>>>> 
>>>>> 
>>>>>> On 8 Apr 2015, at 5:25 pm, Rodger Combs <rodger@plexapp.com> wrote:
>>>>>> 
>>>>>> Some of the ticket descriptions there are incorrect. libavformat's strncmp() approach only matches if the _first_ 5 characters match "bytes", WebKit's g_ascii_strcasecmp only matches if the entire header is exactly "none", Gecko's nsAutoCString::EqualsLiteral only matches if the entire header is exactly "bytes", and Chrome's std::string::find approach works as you described. So they'd all be potentially buggy in different circumstances.
>>>>>> 
>>>>>>> On Apr 8, 2015, at 00:12, Mark Nottingham <mnot@mnot.net> wrote:
>>>>>>> 
>>>>>>> Thanks! CC:ing a couple of relevant people re: the tickets below.
>>>>>>> 
>>>>>>>> On 7 Apr 2015, at 6:28 pm, Rodger Combs <rodger@plexapp.com> wrote:
>>>>>>>> 
>>>>>>>> All links from the mirror most convenient for me:
>>>>>>>> 
>>>>>>>> libavformat: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/http.c#L583
>>>>>>> 
>>>>>>> https://trac.ffmpeg.org/ticket/4451
>>>>>>> 
>>>>>>>> Chromium: https://github.com/ChromiumWebApps/chromium/blob/c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7/content/renderer/media/buffered_resource_loader.cc#L399
>>>>>>> 
>>>>>>> https://code.google.com/p/chromium/issues/detail?id=474864
>>>>>>> 
>>>>>>>> WebKit: https://github.com/WebKit/webkit/blob/4633eb6dd73f925b45244a7f716e571a94f65628/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp#L860
>>>>>>> 
>>>>>>> https://bugs.webkit.org/show_bug.cgi?id=143512
>>>>>>> 
>>>>>>>> Firefox: https://github.com/mozilla/gecko-dev/blob/174ec4f7153479c41f6cae2cf58f0a8ac927db0e/dom/media/MediaResource.cpp#L234
>>>>>>> 
>>>>>>> https://bugzilla.mozilla.org/show_bug.cgi?id=1152162
>>>>>>> 
>>>>>>>> 
>>>>>>>>> On Apr 7, 2015, at 02:54, Mark Nottingham <mnot@mnot.net> wrote:
>>>>>>>>> 
>>>>>>>>> Do you happen to have references to the specific code in each? Regardless of what we do here, it’d be good to file bugs.
>>>>>>>>> 
>>>>>>>>> Cheers,
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> On 7 Apr 2015, at 5:45 pm, Rodger Combs <rodger@plexapp.com> wrote:
>>>>>>>>>> 
>>>>>>>>>> I strongly considered this (instead of adding a header), but upon looking into existing implementations, it's clear it wouldn't work with existing software. No implementation I checked actually parses `Accept-Ranges` as per the RFC:
>>>>>>>>>> 
>>>>>>>>>> 	• libavformat checks if the first 5 characters of the header are "bytes"
>>>>>>>>>> 	• Chromium checks if the string "bytes" appears at all
>>>>>>>>>> 	• WebKit just checks if it's not equal to "none"
>>>>>>>>>> 	• Firefox checks if it's exactly equal to "bytes"
>>>>>>>>>> 
>>>>>>>>>> That last one makes it impossible to change the header's value without breaking backwards-compatibility with older Firefox versions, and the others are differing degrees of problematic.
>>>>>>>>>> 
>>>>>>>>>>> On Apr 7, 2015, at 02:39, Mark Nottingham <mnot@mnot.net> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> That’s what I was thinking. Having said that, I’d want to test some deployed implementations before saying so for sure.
>>>>>>>>>>> 
>>>>>>>>>>> Cheers,
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> On 7 Apr 2015, at 5:38 pm, Martin J. Dürst <duerst@it.aoyama.ac.jp> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> I haven't studied all of the syntax details, but couldn't using a different unit name, such as "newbytes" (even if it's the same unit as bytes) be made to work? That would avoid the need to deploy a totally new mechanism.
>>>>>>>>>>>> 
>>>>>>>>>>>> Regards,   Martin.
>>>>>>>>>>>> 
>>>>>>>>>>>> On 2015/04/07 14:24, Mark Nottingham wrote:
>>>>>>>>>>>>> Hi Roger,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> There are a bunch of folks talking about how to do streaming (especially video) over HTTP, and byte ranges often come up as a mechanism. This reminds me of a discussion we briefly had at the end of the Dallas meeting, where some folks wanted to use byte ranges for sparse content in MPEG DASH.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I think the concerns I had there apply here too; by overloading/changing the partial content mechanism, you’re risking interoperability problems with deployed infrastructure — especially proxy/caches, which can and do cache partial responses, generate partial requests, etc.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> For example, if there’s a caching proxy in the middle that doesn’t understand Accept-Indefinite-Ranges, it’ll pass it through unmodified, and the server will then potentially generate 206 responses that are malformed.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> This and many similar discussions I’ve had recently makes me wonder whether it’d be interesting to define a genuinely new partial content mechanism that’s tailored for media streaming; while it would depend on intermediaries rolling out support for the new mechanism to get any benefit from them, at least we could design it so that it doesn’t interact badly with deployed intermediaries.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> What do people (especially intermediary implementers) think?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 6 Apr 2015, at 10:17 pm, Rodger Combs <rodger@plexapp.com> wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Hello!
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I've written up a draft standard for an HTTP extension that allows range requests to work more effectively with resources of indeterminate length. I've submitted it as an Internet-Draft, and wondered if anyone had any suggestions as to how to improve it, or move it towards standardization?
>>>>>>>>>>>>>> https://tools.ietf.org/html/draft-combs-http-indeterminate-range-01
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> --Rodger
>>>>>>>>>>>>> 
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Mark Nottingham   https://www.mnot.net/
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> .
>>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> --
>>>>>>>>>>> Mark Nottingham   https://www.mnot.net/
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> --
>>>>>>>>> Mark Nottingham   https://www.mnot.net/
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Mark Nottingham   https://www.mnot.net/
>>>>>> 
>>>>> 
>>>>> --
>>>>> Mark Nottingham   https://www.mnot.net/
>>>>> 
>>>> 
>>> 
>> 
>> --
>> Mark Nottingham   https://www.mnot.net/
>> 
> 

--
Mark Nottingham   https://www.mnot.net/