Re: Resumable Uploads

Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Sat, 20 April 2013 21:10 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 199AE21F8607 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 14:10:52 -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=[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 AS3R1KHMH2Hk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 14:10:51 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DC75821F85FC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 20 Apr 2013 14:10:50 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UTf3C-0002xR-2R for ietf-http-wg-dist@listhub.w3.org; Sat, 20 Apr 2013 21:10:26 +0000
Resent-Date: Sat, 20 Apr 2013 21:10:26 +0000
Resent-Message-Id: <E1UTf3C-0002xR-2R@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ilari.liusvaara@elisanet.fi>) id 1UTf38-0002wm-Bs for ietf-http-wg@listhub.w3.org; Sat, 20 Apr 2013 21:10:22 +0000
Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <ilari.liusvaara@elisanet.fi>) id 1UTf37-0006qd-DO for ietf-http-wg@w3.org; Sat, 20 Apr 2013 21:10:22 +0000
Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh06.mail.saunalahti.fi (Postfix) with SMTP id E7A84699C9; Sun, 21 Apr 2013 00:09:58 +0300 (EEST)
Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A06C3AE6764; Sun, 21 Apr 2013 00:09:58 +0300
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id 0E88290049; Sun, 21 Apr 2013 00:09:57 +0300 (EEST)
Date: Sun, 21 Apr 2013 00:09:57 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Yoav Nir <ynir@checkpoint.com>
Cc: Felix =?utf-8?Q?Geisend=C3=B6rfer?= <felix@transloadit.com>, Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20130420210957.GA15553@LK-Perkele-VII>
References: <CADZbJ9dYFGyrceh03M3B0KdKto7160Dis_geh9um0BhVe1re0g@mail.gmail.com> <EA846138-6537-4709-AC44-149873716E29@mnot.net> <CADZbJ9f4wtaFQEsM_wQn-GaTz+fTKZNyfQk6hXG5OL=Lpkhpcw@mail.gmail.com> <2FD45C0A-1A7C-483B-B8E4-5F300B3EDA66@checkpoint.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <2FD45C0A-1A7C-483B-B8E4-5F300B3EDA66@checkpoint.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Sender: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
X-Antivirus: VAMS
Received-SPF: pass client-ip=62.142.5.116; envelope-from=ilari.liusvaara@elisanet.fi; helo=emh06.mail.saunalahti.fi
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.450, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UTf37-0006qd-DO 848c8958f6729f310c45c5d3dec18364
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Resumable Uploads
Archived-At: <http://www.w3.org/mid/20130420210957.GA15553@LK-Perkele-VII>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17435
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>

On Sat, Apr 20, 2013 at 07:43:34PM +0000, Yoav Nir wrote:
> 
> Or are we assuming that the initial PUT is trying to upload everything, and only failure leads to sending the PATCH?

This can't be assumed if client is JS running on the browser (even
assuming it can send PATCH). This is because JS code can't read huge
chunks of file at once[1].

[1] Think transferring e.g. 22,682,958,652 or 26,578,892,498 byte file [2]...
[2] Yes, these sizes are from real-world cases.

-Ilari