[Twisted-Python] Question: Resuming a failed TCP transfer
Itamar Shtull-Trauring
itamar at itamarst.org
Sun May 18 19:12:19 MDT 2008
On Sun, 2008-05-18 at 18:47 -0400, Nadav Aharony wrote:
> I'm wondering, is there some built-in Twisted functionality (or any
> other existing implementation using Twisted) for doing
> resumable/disruption tolerant file transfer?
>
> Sample scenario: A sends file to B, session fails for whatever reason. B
> saved whatever data was received in some temporary structure, and knows
> to resume transfer from where it left off or alternatively request
> specific chunks that it is missing.
>
> Wanted to know this before I start implementing such functionality on my
> own.
Yes, that's what the client factory is for - to store data that needs to
last beyond the life of a single connection. For example see
infrastructure used by twisted.web.client.downloadPage for resumable
downloads.
More information about the Twisted-Python
mailing list