Commit Graph

449 Commits

Author SHA1 Message Date
Arvid Norberg 11b63bc93e storage fix 2007-08-10 02:04:26 +00:00
Arvid Norberg b3e29ba8fa added freebsd to the linux path for detecting sparse files support 2007-08-08 23:08:55 +00:00
Arvid Norberg 61f713d24a fixed #107 2007-08-07 07:19:35 +00:00
Arvid Norberg 8387240b31 more asserts, piece_picker fixes, debug-iterator fixes 2007-08-03 06:13:26 +00:00
Arvid Norberg 245793b7a3 applied patch in #79 2007-07-15 05:34:28 +00:00
Arvid Norberg 5e08a9b379 added reiser4 as having sparse files support and improved detection on mac 2007-07-09 23:29:58 +00:00
Arvid Norberg 7e7686b44f fixed typo 2007-06-18 17:15:33 +00:00
Arvid Norberg b75a69cd47 added alerts for synchronizing disk io when pausing and moving storage 2007-06-11 21:24:14 +00:00
Arvid Norberg 07c8d1242e windows unicode fixes when using boost-1.34 and fix for test_swarm when building without encryption support 2007-06-11 19:01:25 +00:00
Arvid Norberg 3b8670626a merged back async_io branch into trunk 2007-06-10 20:46:09 +00:00
Arvid Norberg 08965f331c removed debug output from storage 2007-06-01 23:27:49 +00:00
Arvid Norberg aea4e503c5 more storage state machine fixes, added test to storage unit test and fix in file::set_size 2007-05-31 23:35:48 +00:00
Arvid Norberg 8f4c460587 fixes to storage state machine 2007-05-31 21:48:36 +00:00
Arvid Norberg 5f7dd474e9 fixes to storage full allocation mode 2007-05-30 22:23:17 +00:00
Arvid Norberg 71fe036b78 removed leftover debug print 2007-05-24 19:00:28 +00:00
Arvid Norberg 510966f2a5 fixed fast resume data bug when using full allocation mode, and moved parts of resume data generation to the storage 2007-05-24 18:53:55 +00:00
Arvid Norberg e9601080bb introduced swap_slots and swap_slots3 on storage_interface. All reads that needs it, should now be EOF safe (when using sparse files). 2007-05-16 01:16:08 +00:00
Arvid Norberg bf25aa0d1c allocate slots bug fix in storage. Introduced with sparse files 2007-05-13 00:25:29 +00:00
Arvid Norberg 734305f78d small modification to linux path for discover sparse files support 2007-05-12 21:21:59 +00:00
Arvid Norberg d95ddde3f2 more storage fixes for problems related to sparse files support 2007-05-09 20:16:18 +00:00
Arvid Norberg 4956639171 piece picker optimization 2007-05-08 11:13:13 +00:00
Arvid Norberg c39462c125 fixed another sparse files related bug in storage 2007-05-04 03:28:42 +00:00
Arvid Norberg 13bcb48dba fixed warnings and removed unused variables 2007-05-02 18:45:29 +00:00
Arvid Norberg 233cd373e8 fixed issue with sparse files and compact allocation. added move_slot() to the storage abstraction 2007-04-30 01:06:29 +00:00
Arvid Norberg 219db47776 fixed boost version test in storage 2007-04-19 16:22:13 +00:00
Arvid Norberg 172205d7fb improvements and fixes to sparse files support. made the test pass again 2007-04-19 03:32:20 +00:00
Arvid Norberg 92cf13c2c2 sparse files fixes. now sets the size of the files in case sparse files are supported 2007-04-19 03:06:15 +00:00
Arvid Norberg 9551e68074 fixes in file_win and removed debugging output from storage 2007-04-18 20:00:58 +00:00
Arvid Norberg 88d6f7a4c9 added character-set build feature (only effective on windows). Made storage build with win32/unicode and newer versions of boost. optimized allocate_slots 2007-04-18 19:12:30 +00:00
Arvid Norberg 4c8e8470cd storage fix for unicode on windows 2007-04-18 16:48:24 +00:00
Arvid Norberg c639399b84 fixed typo in windows code 2007-04-18 00:48:31 +00:00
Arvid Norberg af779b6349 factored out the test for sparse files support 2007-04-18 00:36:09 +00:00
Arvid Norberg 16e17f066c first stab at sparse files support 2007-04-17 21:54:40 +00:00
Arvid Norberg d88ffcc0e4 removed some more unecessary boost.date_time dependencies 2007-04-10 07:52:58 +00:00
Arvid Norberg 7a30b397f8 made test_storage build and fixed bug introduced when storage was turned into a customization point 2007-04-02 05:46:19 +00:00
Arvid Norberg c9fac1efa0 storage did not properly skip incomplete files when doing full checks 2007-03-30 20:22:07 +00:00
Arvid Norberg 72fd437ff0 moved the resume data verification to the storage, since the storage may map the files differently. The creation of resume data should probably also be moved there 2007-03-27 23:49:05 +00:00
Arvid Norberg 8957b64c04 prepared for precompiled headers support. fixed issue where storage didn't lock the session properly. fixed typo in natpmp.cpp 2007-03-17 17:15:16 +00:00
Arvid Norberg 029953c5ae made the storage into a customization point. it is now interchangable for a custom implementation 2007-03-16 05:29:23 +00:00
Arvid Norberg bb0b8c9d95 improved unit test for storage, modified move_storage to hopefully fix a bug. updated Changelog. 2007-02-25 21:11:29 +00:00
Arvid Norberg 10068634f8 fix for typo in previous checkin 2007-02-25 09:44:08 +00:00
Arvid Norberg 7888b72e12 fix for crashes when stopping or restarting DHT 2007-02-25 09:42:43 +00:00
Arvid Norberg de37f48179 fixed bug where multi-file torrents with just a single file in left directories after storage::move_storage was called 2007-02-21 22:49:01 +00:00
Arvid Norberg 4f86042b97 bandwidth management fix + improved string conversion fallback in case strings are incorrect in torrent 2007-02-19 23:06:20 +00:00
Arvid Norberg 0019e9a2fb fixed illegal iterator dereference 2007-02-05 17:10:34 +00:00
Arvid Norberg 01f1d01d58 improved logging, fixed option to allow multiple connections from the same IP 2006-11-15 21:39:58 +00:00
Arvid Norberg 51e3261dd0 the file pool has been moved to the session and its size can be controlled via session_settings. Added untested option to allow multiple connections from the same IP. 2006-11-14 15:53:38 +00:00
Arvid Norberg 247b8ae443 removed temporary assert and factored file_pool out of storage to prepare for a per session file pool 2006-11-14 13:36:10 +00:00
Arvid Norberg f0519e86e8 separated session from session_impl and made a real pimpl-class of it. Introduced the possibility to destruct the sessions async. 2006-10-11 14:02:21 +00:00
Arvid Norberg 80dc56d388 fixed crashing bug when removing torrents while checking 2006-09-24 11:22:25 +00:00
Arvid Norberg 87eb377b17 fixed incorrect asserts in storage (that were triggered by torrent with zero-size files). Fixed bug in resource distribution algorithm. Made an attempt to avoid an assert in msvc standard library caused by passing a non-printable character to isdigit(). 2006-08-10 19:18:11 +00:00
Arvid Norberg 00df2b5bc3 added build notes for vs.net 2005, removed old code from ip_filter.cpp, fixed problem where the stats could become incorrect in case of very high cpu load, added asserts in storage::read() to make sure one is not trying to read out of bounds. 2006-07-26 10:21:25 +00:00
Arvid Norberg 4403eac97b fixed bugs reported by Massaroddel. Tracker request peer-count could be incorrect. Empty files were not created in full allocation mode. 2006-07-08 19:41:39 +00:00
Arvid Norberg db4ca12c02 fixed a full-check bug in storage. Changed the asio includes to avoid require boost.regex headers 2006-06-24 14:15:11 +00:00
Arvid Norberg 41810b1166 merged back the asio development branch 2006-04-25 21:04:48 +00:00
Arvid Norberg 01820e5579 more patches in order to get it to build on vc7 2006-01-08 22:55:02 +00:00
Arvid Norberg bad06d0c4e fixed adl usage to work with vc7 and removed inclusion of lambda header, to make it build in vc7 2006-01-07 15:41:20 +00:00
Arvid Norberg 3f36dd0395 added the ability to build libtorrent as a shared library. Fixed bugs with deleting of incomplete types (replaced auto_ptr with scoped_ptr). Made the string converter fall back on windows local code page if utf-8 decoding failed. 2005-11-01 18:30:39 +00:00
Arvid Norberg 9d426441f1 more fixes for the windows file_size function 2005-10-17 21:09:42 +00:00
Arvid Norberg c84a71c1ad *** empty log message *** 2005-10-17 21:00:57 +00:00
Arvid Norberg ac2c1fba0c fixed incorrect function name 2005-10-17 20:58:37 +00:00
Arvid Norberg 51052fa2b1 fixed incorrect assert in file_win.cpp, added windows-unicode function for file_size 2005-10-17 20:37:40 +00:00
Arvid Norberg d3996ccfb9 added metadata_failed_alert and allcoating torrent state 2005-10-17 13:45:53 +00:00
Arvid Norberg f770d1438d fixed bug introduced in latest storage changes (triggered when using metadata extension). improved commandline switches to client_test 2005-10-16 09:15:46 +00:00
Arvid Norberg 189a8756ee big change in the way storage is checked. The checker thread can now check the fastresume data of a new torrent without waiting for a currently checking one 2005-10-13 07:59:05 +00:00
Arvid Norberg 6d66566298 fixed problem with file pool when files were opened with 0 as info hash and attempted to close with the correct one. the info hash is no longer used as the key in the file pool. Also updated Makefile.am to include the buffer.hpp and .cpp and to include the storage unit test 2005-09-28 21:46:35 +00:00
Arvid Norberg f824714b0e added a test for storage and fixed a bug in piece checking 2005-09-11 09:48:05 +00:00
Arvid Norberg a15f589341 fixed problem in piece_picker with filtered files, also optimzed it somewhat. Added more logging and added one test to the piece_picker test 2005-09-01 21:04:21 +00:00
Arvid Norberg df4466cb86 made it build on cygwin 2005-08-18 11:20:17 +00:00
Arvid Norberg 6d8068e5d5 *** empty log message *** 2005-08-16 20:42:10 +00:00
Arvid Norberg 6c32f82fc5 *** empty log message *** 2005-08-16 20:18:11 +00:00
Arvid Norberg 2582c47cd8 *** empty log message *** 2005-08-16 19:35:14 +00:00
Arvid Norberg 5df5773479 better unicode support on windows 2005-08-16 19:09:06 +00:00
Arvid Norberg fb3f1624cf better unicode support on windows 2005-08-16 19:06:25 +00:00
Arvid Norberg 0dde64e8f2 updated docs, added an attempt for better unicode support on windows 2005-08-16 18:39:38 +00:00
Arvid Norberg d19c2c6483 removed olf workarounds for vc6.5 and added documentation for building with autotools 2005-08-15 18:03:57 +00:00
Arvid Norberg 1934171431 bugfixes, fixes for boost 1.33, made the piece picker pick whole pieces from fast peers 2005-08-14 22:04:58 +00:00
Arvid Norberg f7c90b8511 *** empty log message *** 2005-08-12 12:40:58 +00:00
Arvid Norberg 845eee234f *** empty log message *** 2005-06-30 21:38:28 +00:00
Arvid Norberg 6fb43fe3f3 storage fix 2005-06-30 12:59:23 +00:00
Arvid Norberg 4807fe6a46 *** empty log message *** 2005-06-27 23:11:09 +00:00
Arvid Norberg 0efa042414 made the file pool global instead of local per torrent 2005-06-27 22:04:34 +00:00
Arvid Norberg 0320e097d6 *** empty log message *** 2005-06-16 15:41:04 +00:00
Arvid Norberg 2fabb2bf80 experimental support for filtering pieces (filter from downloading that is) 2005-05-25 10:01:01 +00:00
Arvid Norberg 9707b6aeb0 added support for non-compact storage layout. i.e. all the files are allocated on disk before downloading starts 2005-05-13 00:39:39 +00:00
Arvid Norberg 7814b03370 fixed issue with creating torrents with a single file in a directory and some security issues with paths in torrents 2005-05-11 23:03:12 +00:00
Arvid Norberg 6ff7e76ab2 *** empty log message *** 2005-03-19 12:22:40 +00:00
Arvid Norberg 78a1ef3cd9 fixed an incorrect assert that was hit when having empty files in a torrent 2005-03-12 10:12:36 +00:00
Arvid Norberg 727dc803a3 *** empty log message *** 2005-03-10 11:26:55 +00:00
Arvid Norberg a5c91f683a *** empty log message *** 2005-03-05 14:17:17 +00:00
Arvid Norberg 999754ee23 *** empty log message *** 2005-03-04 23:45:16 +00:00
Arvid Norberg 77597b360d *** empty log message *** 2005-03-03 00:40:44 +00:00
Arvid Norberg d0b9fe8778 *** empty log message *** 2005-01-14 14:10:38 +00:00
Arvid Norberg b55a1a6766 *** empty log message *** 2004-12-21 12:30:09 +00:00
Arvid Norberg b29e378f22 *** empty log message *** 2004-11-18 22:33:50 +00:00
Arvid Norberg a326bc4391 *** empty log message *** 2004-10-18 10:46:55 +00:00
Arvid Norberg 40a88434b1 *** empty log message *** 2004-10-18 10:36:47 +00:00
Arvid Norberg a997a43d30 *** empty log message *** 2004-10-10 00:42:48 +00:00
Arvid Norberg 922a591154 *** empty log message *** 2004-09-16 17:18:10 +00:00
Arvid Norberg a282a51c4d *** empty log message *** 2004-09-16 12:12:36 +00:00
Arvid Norberg 579d63f49d *** empty log message *** 2004-09-16 01:14:16 +00:00
Arvid Norberg 2406d5e54d *** empty log message *** 2004-09-12 13:53:00 +00:00
Arvid Norberg 8b4928d280 *** empty log message *** 2004-08-16 21:55:31 +00:00
Magnus Jonsson 09c761331b typo 2004-08-01 19:20:39 +00:00
Magnus Jonsson 71b2ea7afd added checks before fs::create_directory in move_storage in storage.cpp 2004-08-01 19:17:38 +00:00
Arvid Norberg 59123c793b *** empty log message *** 2004-07-18 11:40:22 +00:00
Arvid Norberg 1148a5574c *** empty log message *** 2004-07-18 00:39:58 +00:00
Arvid Norberg f70bd8ac97 added a metadata extension. i.e. torrent-less downloads 2004-06-13 23:30:42 +00:00
Arvid Norberg e79dd2c706 *** empty log message *** 2004-06-05 12:53:06 +00:00
Arvid Norberg 22e2f8a164 *** empty log message *** 2004-05-10 06:12:29 +00:00
Arvid Norberg 6f818ec7c3 *** empty log message *** 2004-04-19 20:58:30 +00:00
Arvid Norberg 1313fb9fb8 *** empty log message *** 2004-04-02 22:21:20 +00:00
Arvid Norberg fb8a1bb495 *** empty log message *** 2004-03-30 23:55:52 +00:00
Arvid Norberg fac783b4d8 *** empty log message *** 2004-03-28 17:45:37 +00:00
Arvid Norberg a005dfa489 *** empty log message *** 2004-03-24 22:50:07 +00:00
Arvid Norberg bfd918e90c *** empty log message *** 2004-03-17 12:55:26 +00:00
Arvid Norberg 084172000e *** empty log message *** 2004-03-08 11:45:51 +00:00
Magnus Jonsson 1d9b74ffee *** empty log message *** 2004-03-07 20:50:56 +00:00
Arvid Norberg 1cdfc9ce95 *** empty log message *** 2004-03-07 09:58:44 +00:00
Arvid Norberg d4cd23a874 *** empty log message *** 2004-03-05 19:03:02 +00:00
Arvid Norberg 3dac95965e *** empty log message *** 2004-03-05 12:04:47 +00:00
Arvid Norberg 258d691dae *** empty log message *** 2004-03-03 13:47:12 +00:00
Magnus Jonsson 4cb125a694 *** empty log message *** 2004-02-23 22:54:54 +00:00
Arvid Norberg 87222ebf3f *** empty log message *** 2004-02-19 16:47:12 +00:00
Arvid Norberg 1a198769cf *** empty log message *** 2004-02-01 17:26:09 +00:00
Arvid Norberg 803a65bff9 *** empty log message *** 2004-02-01 16:48:59 +00:00
Arvid Norberg 03561913df *** empty log message *** 2004-01-28 11:37:46 +00:00
Arvid Norberg 26b9900f91 the file scanner should now be able to resume files downloaded by any client. 2004-01-27 17:48:58 +00:00
Arvid Norberg 4c8a8d0a8c *** empty log message *** 2004-01-26 23:39:24 +00:00
Arvid Norberg b31ce8a10a *** empty log message *** 2004-01-26 23:38:08 +00:00
Arvid Norberg fc74e19224 *** empty log message *** 2004-01-26 10:29:00 +00:00
Magnus Jonsson b716a40795 *** empty log message *** 2004-01-26 01:45:30 +00:00
Arvid Norberg fd9fba2964 *** empty log message *** 2004-01-26 01:08:59 +00:00
Arvid Norberg 726a8b57b6 *** empty log message *** 2004-01-25 21:51:30 +00:00
Arvid Norberg 45ed3662fa *** empty log message *** 2004-01-25 21:37:19 +00:00
Arvid Norberg 0dbbc18186 removed most warnings on msvc.
reimplemented piece_manager::check_pieces to take care of all possible cases of the storage state.
2004-01-25 18:18:36 +00:00
Arvid Norberg 718f01155f *** empty log message *** 2004-01-25 12:37:15 +00:00
Magnus Jonsson 0634e778e9 *** empty log message *** 2004-01-25 04:18:08 +00:00
Magnus Jonsson bb36fa8e24 *** empty log message *** 2004-01-25 02:59:27 +00:00
Magnus Jonsson 30329cc225 *** empty log message *** 2004-01-24 19:19:17 +00:00
Arvid Norberg 19a4dad706 *** empty log message *** 2004-01-24 17:14:03 +00:00
Magnus Jonsson 8b286d84a6 *** empty log message *** 2004-01-21 03:46:14 +00:00
Arvid Norberg f729893016 *** empty log message *** 2004-01-18 10:22:18 +00:00
Arvid Norberg e257516670 took a shot at making it compile on vc6. 2004-01-18 01:58:33 +00:00
Arvid Norberg 4d33080399 *** empty log message *** 2004-01-17 20:04:19 +00:00
Arvid Norberg a75f327fee *** empty log message *** 2004-01-16 16:41:49 +00:00
Arvid Norberg c6ef357cdc *** empty log message *** 2004-01-16 16:36:09 +00:00
Magnus Jonsson b339a3a33d *** empty log message *** 2004-01-16 16:19:27 +00:00
Arvid Norberg 7cda5c2de8 *** empty log message *** 2004-01-16 15:18:02 +00:00
Arvid Norberg 4f0e42c494 *** empty log message *** 2004-01-16 15:07:01 +00:00
Arvid Norberg fb83b4c062 *** empty log message *** 2004-01-16 13:07:47 +00:00
Magnus Jonsson e1f433f5db *** empty log message *** 2004-01-16 03:58:24 +00:00
Arvid Norberg 5914b3400f *** empty log message *** 2004-01-16 02:57:45 +00:00
Arvid Norberg 85ed5e1593 added first file abstraction interface. 2004-01-15 23:57:11 +00:00
Arvid Norberg 410b35f95e *** empty log message *** 2004-01-15 16:45:34 +00:00
Arvid Norberg abbedbf104 *** empty log message *** 2004-01-13 03:08:59 +00:00
Arvid Norberg 9e979efb8b *** empty log message *** 2004-01-12 03:05:10 +00:00
Arvid Norberg d43380d579 *** empty log message *** 2004-01-05 01:45:57 +00:00
Daniel Wallin 1baef63b99 *** empty log message *** 2004-01-04 12:54:38 +00:00
Arvid Norberg 3033f16f47 *** empty log message *** 2004-01-03 02:10:11 +00:00
Arvid Norberg 95026395f3 *** empty log message *** 2004-01-02 20:46:24 +00:00
Arvid Norberg 5fd4f6ece2 *** empty log message *** 2003-12-27 01:34:50 +00:00
Arvid Norberg dfef82ceda *** empty log message *** 2003-12-25 12:11:31 +00:00
Arvid Norberg 5ac9f67f23 *** empty log message *** 2003-12-21 17:28:27 +00:00
Arvid Norberg 7de3079ef0 *** empty log message *** 2003-12-17 16:37:20 +00:00
Arvid Norberg 465b3c214a *** empty log message *** 2003-12-14 22:55:32 +00:00
Arvid Norberg 24e4c197c9 *** empty log message *** 2003-12-14 05:56:12 +00:00
Arvid Norberg a19ec4afc2 *** empty log message *** 2003-12-11 03:32:20 +00:00
Daniel Wallin c03de910ec removed old code 2003-12-10 00:39:47 +00:00
Arvid Norberg 811c073c1b fixed storage bug 2003-12-10 00:24:16 +00:00
Daniel Wallin c051285075 *** empty log message *** 2003-12-09 08:55:03 +00:00
Daniel Wallin 22bfad216f made storage pimpled 2003-12-09 08:49:49 +00:00
Daniel Wallin 3849f449fc fixed bug in storage::read() 2003-12-08 08:55:24 +00:00
Arvid Norberg 3ed0745cb1 *** empty log message *** 2003-12-08 01:37:30 +00:00
Daniel Wallin 5e0dbf78b0 *** empty log message *** 2003-12-07 16:27:37 +00:00
Daniel Wallin f5c4476ce3 made storage thread safe 2003-12-07 16:26:16 +00:00
Daniel Wallin ee2e5937ff fixed new storage 2003-12-07 15:47:24 +00:00
Daniel Wallin 1313e32954 fixed new storage 2003-12-07 15:03:06 +00:00
Daniel Wallin 3e5e004e36 *** empty log message *** 2003-12-07 14:19:04 +00:00
Daniel Wallin 417c73be96 *** empty log message *** 2003-12-07 14:12:14 +00:00
Arvid Norberg 5f9ae41e86 *** empty log message *** 2003-12-07 05:53:04 +00:00
Daniel Wallin b62f8f1a85 started implementation of new storage. 2003-12-07 01:26:57 +00:00
Daniel Wallin 7ae866bf10 *** empty log message *** 2003-12-05 10:10:06 +00:00
Daniel Wallin 135d5a8cfd fixed bug in storag 2003-12-01 22:09:58 +00:00
Arvid Norberg 6402fd4a14 *** empty log message *** 2003-12-01 21:27:27 +00:00
Arvid Norberg f21d6a0f7f there are still some serious issues with storage when having large torrents (about 700 meg and up at least) 2003-12-01 05:01:40 +00:00
Daniel Wallin 0019e23b4f alerts 2003-11-29 16:34:07 +00:00
Daniel Wallin 0e20b2706c added copyright 2003-11-29 01:54:41 +00:00
Arvid Norberg 94919f9806 *** empty log message *** 2003-11-28 17:29:27 +00:00
Arvid Norberg 67ecb82524 *** empty log message *** 2003-11-26 14:54:56 +00:00
Daniel Wallin 329e610ca6 new storage 2003-11-26 14:11:25 +00:00
Arvid Norberg 420ab6bff2 *** empty log message *** 2003-11-09 18:17:09 +00:00
Arvid Norberg 6325295993 *** empty log message *** 2003-11-04 23:27:06 +00:00
Arvid Norberg b5914b5528 *** empty log message *** 2003-10-31 10:56:03 +00:00
Arvid Norberg 6466b46573 *** empty log message *** 2003-10-31 04:02:51 +00:00
Arvid Norberg d7f92afea3 *** empty log message *** 2003-10-29 23:28:09 +00:00
Arvid Norberg 1bd0a8234a *** empty log message *** 2003-10-28 01:20:50 +00:00
Arvid Norberg a09595c634 made some fixes mainly for the bsd-sockets. It still
doesn't work on linux.
2003-10-24 02:18:11 +00:00
Arvid Norberg ec34b1bfdb Initial commit of 'new' libtorrent.
The Jamfile is broken and will hopefully be fixed soon.
2003-10-22 23:00:57 +00:00