[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Kio_file & Rollback
From:       Alex Zepeda <garbanzo () hooked ! net>
Date:       1999-07-26 6:47:45
[Download RAW message or body]

On Sat, 24 Jul 1999, Matt Koss wrote:

> Basically, what I have to do is :
> 
> 1. truncate file, which will cut the garbage from the end of file

> 2. later, when resuming, compare some data from the end of the truncated file
>     with a data read by resumed transfer. If they match = http server supports
>     resuming

This should be done for any protocol that supports resuming.. an extension
to the mimelnk files perhaps?

I think the best way to do this, is save the file as-is, then resume at
about 1k or so before the end of the file (so if you download 112k resume
at 111k), and then compare that last 1k of data.. if it matches what's
downloaded procede, otherwise warn the user and offer to restart from the
beginning.

This IMO has little if anything to do with kio_file, this belongs in the
resume member (if there is one, otherwise get should be extended) of the
protocol (say http) that supports the resuming..

- alex

You wear guilt,
like shackles on your feet,
Like a halo in reverse
  - Depeche Mode

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic