Re: [ftpext] Fwd: New Version Notification for draft-bryan-ftp-range-06.txt

Anthony Bryan <anthonybryan@gmail.com> Fri, 29 June 2012 01:10 UTC

Return-Path: <anthonybryan@gmail.com>
X-Original-To: ftpext@ietfa.amsl.com
Delivered-To: ftpext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A33C11E80FF for <ftpext@ietfa.amsl.com>; Thu, 28 Jun 2012 18:10:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.599
X-Spam-Level:
X-Spam-Status: No, score=-4.599 tagged_above=-999 required=5 tests=[AWL=1.000, BAYES_00=-2.599, GB_I_LETTER=-2, RCVD_IN_DNSWL_LOW=-1]
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 OP0fo4iRehYX for <ftpext@ietfa.amsl.com>; Thu, 28 Jun 2012 18:10:08 -0700 (PDT)
Received: from mail-gh0-f172.google.com (mail-gh0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id 8D04B11E80A2 for <ftpext@ietf.org>; Thu, 28 Jun 2012 18:10:08 -0700 (PDT)
Received: by ghbg16 with SMTP id g16so2619547ghb.31 for <ftpext@ietf.org>; Thu, 28 Jun 2012 18:10:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=zsREXTDJYYq0Gh520XqBpwFKcLjr0XD5PWWHvcT8vBw=; b=AVEV9hQTASEIZDuRI8KXah7bJ7yNCoW2fdqpK3OWDiHQZEYfsVxo2647RdNHdJzgS+ uxzDcwzFCUDlAdG6kAaZ2z35kaVIrrEXl8KAtYe+H4eBwwxKYjokPs4hG8DEgh8JQexI dG8y//ZOaWrVRBnAOzxgf4Mxv/u7ydmb8nbnkli7DRDkZO+hVlfAvynT2CbRyqpAK/+R YGgzYv/Gm6vhTMTmj9NwkVOfEcbqjzlB2gHb57TjGk/Rk5Uc3NWb2hrM3QW+7dOmC/Hz uFC2BsE+xDY7hy2n0JNrlSoMpK4UidylhboRmdYBSoBVlfaE0N6v8tWTImokw5qHt+XS /J9w==
MIME-Version: 1.0
Received: by 10.236.154.193 with SMTP id h41mr37021yhk.58.1340932208145; Thu, 28 Jun 2012 18:10:08 -0700 (PDT)
Received: by 10.146.107.1 with HTTP; Thu, 28 Jun 2012 18:10:08 -0700 (PDT)
In-Reply-To: <4FDD9E40.8060900@filezilla-project.org>
References: <20120524233616.22194.91919.idtracker@ietfa.amsl.com> <CANqTPejvDbHT5ysCksB+GdxjODVrU9BGkFfvwjMZymAeJiyjYg@mail.gmail.com> <4FDD9E40.8060900@filezilla-project.org>
Date: Thu, 28 Jun 2012 21:10:08 -0400
Message-ID: <CANqTPejM4_aBTDjQB=cXbgLQS3tHNjA89vZUHVdRbsRMsv_PoA@mail.gmail.com>
From: Anthony Bryan <anthonybryan@gmail.com>
To: Tim Kosse <tim.kosse@filezilla-project.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: ftpext@ietf.org
Subject: Re: [ftpext] Fwd: New Version Notification for draft-bryan-ftp-range-06.txt
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Jun 2012 01:10:10 -0000

thanks, Tim!

On Sun, Jun 17, 2012 at 5:07 AM, Tim Kosse
<tim.kosse@filezilla-project.org> wrote:
> On 2012-06-05 01:53, Anthony Bryan wrote:
>> FYI, any comments?
>> http://tools.ietf.org/html/draft-bryan-ftp-range
>
>> 3. octet Ranges in STREAM Mode
>
> The title of section 3 should probably start a capital letter.

Yes.


>>    The server-PI SHOULD transfer the whole range from the start point to
>>    the end point with RETR if the end point is larger than the actual
>>    file.
>
> Seems unclear, in particular what to send between the end of the file
> and the end point. I suppose you meant the following?
>
> The server-PI SHOULD transfer the whole range from the start point to
> the end of the file with RETR if the end point is larger than the actual
> file.

Yes, changed.

>> With STOR, however, the server must
>>    insert the data into the file named.  The results are undefined if a
>>    client uses RANG to do other than restart to complete a transfer of a
>>    file that had previously failed to completely transfer.  In
>>    particular, if the restart marker set with a RANG command is not at
>>    the end of the data currently stored at the server, as reported by
>>    the server, or if insufficient data are provided in a STOR that
>>    follows a RANG to extend the destination file to at least its
>>    previous size, then the effects are undefined.
>
> The requirement of the start point to be at the end of the file if used
> with STOR is problematic.
>
> If a transfer is interrupted due to a network error, it can happen that
> the for the client the transfer has failed already whereas the server
> things it is still ongoing. If there is data still in-flight or
> otherwise pending, the file size can change between the call to SIZE and
> the subsequent RANG/STOR. Only workaround would be for the client to
> wait an unspecified time before resuming until it can be reasonably sure
> that there is no pending data still in-flight.
>
> I would change the semantics as follows:
>
> - The RANG start point must never exceed the file size
> - If it is less than the file size, continue writing at that position in
> the file, overwriting existing data between start-point and end-point.
> - RANG must not cause files on the server to be truncated
> - Implementation note: Some servers currently open the file with
> O_APPEND if using STOR, they should not do this anymore.
>
> Apart from solving the timing issue, this change would also makes it
> possible to selectively modify parts of a file on the server.

that sounds good to me and like a nice bonus.

what do others think?

-- 
(( Anthony Bryan ... Metalink [ http://www.metalinker.org ]
  )) Easier, More Reliable, Self Healing Downloads