RetroShare/libretroshare/src/tests
csoler 889a2b2433 Added deferred check of chunks during file transfer. Chunk sha1 sums are requested to the sources and checked for downloaded data.
Validated chunks are shared to other peers. Force check is now very simple since it just turns all chunks into "needs checking" mode
and sums are asked to sources. Sources maintain a temporary cache of chunks. Since sums are requested sparsely, this should not 
affect the sources in terms of performance. We can still imagine precomputing and saving sha1 of chunks while hashing them.

For backward compatibility reasons, the following has been setup *temporarily* in this version:
- unvalidated chunks are still considered as already obtained, and are shared and saved
- force check has been disabled
- final file check is maintained
- in case of file fail, the old checking mode will be used.

All changes for next version are kept in the define 'USE_NEW_CHUNK_CHECKING_CODE' that will be made the default in a few weeks.
At start, I expect most chunk to stya yellow during download, until most sources are able to provide chunk hashs.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5019 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-15 19:55:43 +00:00
..
dbase fixed compilation of fimontest.cc 2011-10-31 13:19:35 +00:00
ft Improvements to file transfer: 2012-02-16 21:10:46 +00:00
general added method for removign signatures in a PGP certificate, and a test program to test it. Not yet plugged in into RS 2012-01-22 19:55:10 +00:00
pqi merge of QoS branch into trunk 2011-09-04 20:01:30 +00:00
printcache re-worked printcache to analyse a large batch of cache files. 2011-05-17 18:03:05 +00:00
scripts * Switched on Dht "Attach" Mode if RS is firewalled. (and not nice firewall). 2011-07-21 11:28:19 +00:00
serialiser Improvements to chat lobbies: 2012-01-06 22:17:08 +00:00
services updating tests: 2011-06-22 21:38:26 +00:00
tcponudp * Switched on Dht "Attach" Mode if RS is firewalled. (and not nice firewall). 2011-07-21 11:28:19 +00:00
util Added deferred check of chunks during file transfer. Chunk sha1 sums are requested to the sources and checked for downloaded data. 2012-03-15 19:55:43 +00:00
TestNotes.txt * fixed ftdata testharness functions (ftdata.h) 2010-06-20 12:24:05 +00:00