[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



though i could be mistaken, i believe that the ability to resume aborted
 transfers is a built-in feature of http.  anyone who knows better, feel
free to correct me, but as i understand it, during the initial
connection set up where the client and server are introducing themselves
and making idle chit-chat, part of what they discuss is the size of the
things to be transferred, and the size of the packets to send it in.
that would mean that a decent implementation of http would be able to do
the following basic math:

x = size of document on server
y = size of packets
z = size of document in client cache

a = x/y = the number of packets that make up the document
b = z/y = the number of packets that have already been sent to the client
c = a-b = the number of packets that the client hasn't received yet.

so, with that simple math out of the way (hopefully i formatted that
well enough that it can be read), a robust http libaray would be able to
keep track of where in the file transfer it was.

then, because http makes allowances for the fact that sometimes packets
get corrupted, or just don't ever arrive, you're allowed to make
requests for specific packets from a document.  so you can start
downloading documents in the middle, if you want to.  which is really
useful, if you've already downloaded the first half of it.

hopefully, that's both correct, and coherent.

--joh6nn


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00069" href="msg00069.html">[ale] how does WGET resume downloading a file when interrupted ?</a></strong>
<ul><li><em>From:</em> cc.thomas at earthlink.net (Courtney Thomas)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00070.html">[ale] OT: $400 Laptop</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00072.html">[ale] how does WGET resume downloading a file when interrupted	?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00069.html">[ale] how does WGET resume downloading a file when interrupted ?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00072.html">[ale] how does WGET resume downloading a file when interrupted	?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00071"><strong>Date</strong></a></li>
<li><a href="threads.html#00071"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>