robk-tahoe
7b990cc9af
UNDO: offloaded: close reader before removing its file
...
unlinking a file before closing it is not portable. it works on unix, but fails
since an open file holds a lock on windows.
this closes the reader before trying to unlink the encoding file within the
CHKUploadHelper.
2008-01-17 17:36:28 -07:00
robk-tahoe
46154beace
offloaded: close reader before removing its file
...
unlinking a file before closing it is not portable. it works on unix, but fails
since an open file holds a lock on windows.
this closes the reader before trying to unlink the encoding file within the
CHKUploadHelper.
2008-01-17 17:36:28 -07:00
Brian Warner
e9307d3fda
offloaded: close the local filehandle after encoding is done, otherwise windows fails
2008-01-17 01:52:33 -07:00
Brian Warner
0e3b218e7d
offloaded.py: delete encoding tempfile when upload is complete
2008-01-17 01:15:54 -07:00
Brian Warner
41cbd1e3a7
offloaded.py: when resuming, append new data to incoming file, rather than overwrite it.
2008-01-17 01:15:32 -07:00
Brian Warner
8386b0226b
offloaded.py: remove dead/redundant code
2008-01-17 01:14:45 -07:00
Brian Warner
c597e67c2b
offloaded: improve logging across the board
2008-01-17 01:11:35 -07:00
Brian Warner
51321944f0
megapatch: overhaul encoding_parameters handling: now it comes from the Uploadable, or the Client. Removed options= too. Also move helper towards resumability.
2008-01-16 03:03:35 -07:00
Brian Warner
f0430ccc48
offloaded: cleanup to handle multiple simultaneous uploaders gracefully
2008-01-14 22:20:03 -07:00
Brian Warner
168a8c3b73
offloaded: improve logging, pass through options, get ready for testing interrupted uploads. test_system: add (disabled) interrupted-upload test
2008-01-14 21:24:26 -07:00
Brian Warner
7ac2b94aba
remove wait_for_numpeers and the when_enough_peers call in mutable.Publish
2008-01-14 14:55:59 -07:00
Brian Warner
964edadf44
offloaded: add a system test, make it pass. files are now being uploaded through the helper.
2008-01-11 05:42:55 -07:00
Brian Warner
08f9c3f2ab
offloaded.py: hush pyflakes
2008-01-11 05:05:14 -07:00
Brian Warner
6ac01fde4c
offloaded: more test coverage on client side, change interfaces a bit
2008-01-11 04:53:37 -07:00
Brian Warner
e825406fc2
offloaded: move interfaces to interfaces.py, start implementing backend
2008-01-09 21:25:47 -07:00
Brian Warner
2ad84eeed8
offloaded: create a Helper if 'run_helper' is non-empty
2008-01-09 20:25:05 -07:00
Brian Warner
ea24864544
offloaded: more code, fix pyflakes problems, change IEncryptedUploader a bit
2008-01-09 17:58:47 -07:00
Brian Warner
db71bdae9c
offloaded: early code: most of client-side, defined the RemoteInterfaces
2008-01-08 21:18:54 -07:00