Commit Graph

628 Commits

Author SHA1 Message Date
Arvid Norberg 2662c84f01 fixed issue when calling close on an uninstantiated variant_stream + variant_stream cleanup (removed unncessesary templates) 2007-10-22 22:53:31 +00:00
Arvid Norberg fcc238e801 lowered piece timeout and sends cancels for pieces when a time out occurs 2007-10-22 20:58:42 +00:00
Arvid Norberg ade50123c3 cleaned up unnecessary template functions 2007-10-22 10:54:48 +00:00
Arvid Norberg 92d29334fa cleanup. doesn't allocate sockets on the heap for no reason anymore 2007-10-22 04:17:26 +00:00
Arvid Norberg b032c26bf0 adds invariant check to make sure pieces that are complete are also checked. adds a debug function in the disk_io_thread. Fixes a problem with a failing disk write that would not clear the block for re-download. Adds some extra session logging 2007-10-18 00:32:16 +00:00
Arvid Norberg a1356bdb7f intrusive_ptr_base fix 2007-10-15 17:56:22 +00:00
Arvid Norberg 1699fa4652 fast reconnect fixes 2007-10-15 05:03:29 +00:00
Arvid Norberg 59c7f5bfbb added option to delete files from disk as a torrent is removed 2007-10-13 03:33:33 +00:00
Arvid Norberg 09bcb3ff2e removed unused left-overs 2007-10-12 22:28:52 +00:00
Arvid Norberg c6c77d8efc fixed so that peers only get one fast-reconnect 2007-10-12 01:12:30 +00:00
Arvid Norberg 995485daeb fixed destruction order issue 2007-10-09 22:17:16 +00:00
Arvid Norberg ffe2e75882 added another alert to cover all cases where the torrent has to be checked at start, and tell the user why. Fixed a problem with the resume data generation introduced in last storage check-in 2007-10-09 00:25:01 +00:00
Arvid Norberg 4d19f7ff0f storage optimization. introduced a nother allocation mode: sparse. Now there is allocate, compact and sparse. Unless compact is used, the memory structures used to keep track of pieces are no longer allocated. sparse storage mode is now the default 2007-10-08 20:01:36 +00:00
Arvid Norberg 28274bf1bd improved shutdown behavior. decreased tracker timeouts to 5 seconds. added more logging 2007-10-07 18:06:56 +00:00
Arvid Norberg b51f40260a fixed warning in intel-9.0 2007-10-07 16:42:31 +00:00
Arvid Norberg 966800cd5b replaced the assert macro to TORRENT_ASSERT instead of hi-jacking assert. 2007-10-05 00:30:00 +00:00
Arvid Norberg 2940d253c3 completed fast reconnect fix 2007-10-04 21:26:50 +00:00
Arvid Norberg 82369a552b fix to make torrent_info assignable 2007-10-04 20:47:44 +00:00
Arvid Norberg c4c8d0f533 moved piece_finished_alert to debug level 2007-10-03 23:15:13 +00:00
Arvid Norberg 51f12e774e moved block_downloading_alert and block_finished_alert to debug level 2007-10-03 22:53:52 +00:00
Arvid Norberg 4cab49cbdf saves banned peers in resume data 2007-10-03 17:37:15 +00:00
Arvid Norberg fd180c4294 fixed bug in policy 2007-10-02 20:30:53 +00:00
Arvid Norberg 3dcae188fb policy now has a map of peers instead of a flat list, makes it more efficient to do lookups 2007-10-02 19:11:04 +00:00
Arvid Norberg 16886741d0 release_files now keeps the torrent object alive 2007-10-02 18:34:34 +00:00
Arvid Norberg 973e7be386 added router_for_interface along with a proper windows implementation. NAT-PMP support is now good on windows 2007-10-01 17:21:19 +00:00
Arvid Norberg c3991bcfea fix for previous check-in 2007-10-01 08:59:37 +00:00
Arvid Norberg f20cf1b92f fixes issue whith failure to create logs causes libtorrent to quit, fixes ticket #168 2007-10-01 08:36:15 +00:00
Arvid Norberg 9bcb4e9f09 fixed asio include header 2007-10-01 07:22:51 +00:00
Arvid Norberg 7720b48263 removed invalid inline 2007-10-01 02:21:58 +00:00
Arvid Norberg 0048f343cd upnp, natpmp and lsd now have proper lifetime management by using intrusive_ptr 2007-09-29 21:31:51 +00:00
Arvid Norberg 9597b98f4d moved log_time() into session.cpp instead of being inlined 2007-09-29 20:35:55 +00:00
Arvid Norberg b48948e231 changed the double send buffers to a chained buffer using iovec send operations. buffers are recycled (saves memory and cpu) and memory copies are avoided (saves cpu). More statistics is added to track buffer usage 2007-09-29 16:14:03 +00:00
Arvid Norberg d48236a738 changed http_parser slightly. uses http_parser in lsd.cpp. added more tests to the http_parser 2007-09-25 03:14:05 +00:00
Arvid Norberg 6ce8d367a4 added error checking to endpoint to string conversion. fixes problem on systems without IPv6 support 2007-09-23 22:50:25 +00:00
Arvid Norberg 3b6aee6d86 switched out std::vector to use libtorrent::buffer as an optimization 2007-09-23 00:51:45 +00:00
Arvid Norberg 2e93b92cb4 more IPv6 fixes. support for multihomed machines by listening on multiple interfaces. added listen_succeeded_alert to advertize which interfaces are being listened on 2007-09-22 16:27:29 +00:00
Arvid Norberg 022c38d5f4 added is_any(address) function 2007-09-22 16:26:03 +00:00
Arvid Norberg 87c079033d fixed race condition in enum_net 2007-09-22 16:22:41 +00:00
Arvid Norberg a26bd55ff9 variant_stream fixes and added an operator<< for tcp::endpoint 2007-09-22 16:21:07 +00:00
Arvid Norberg 053f499ec6 better upnp support 2007-09-20 23:25:40 +00:00
Arvid Norberg 587d40e1ae updates to enum_net 2007-09-20 16:25:07 +00:00
Arvid Norberg 338eedf961 added storage assert, fixed policy assert 2007-09-19 19:55:11 +00:00
Arvid Norberg af95c01f24 torrent_handle fixes 2007-09-19 18:34:01 +00:00
Arvid Norberg b0d51950b6 fixed problem in bandwidth_manager 2007-09-19 06:06:18 +00:00
Arvid Norberg 60f9d1366a added more asserts to bandwidth limiter 2007-09-19 01:08:50 +00:00
Arvid Norberg fbac9f785a disabled loopback for upnp 2007-09-18 01:25:28 +00:00
Arvid Norberg 2661f834fd added TORRENT_EXPORT to assert_fail 2007-09-17 18:19:08 +00:00
Arvid Norberg bc897ef808 fixed compile warning 2007-09-17 10:00:08 +00:00
Arvid Norberg b5a2373bff added an option to generate a disk io log file 2007-09-17 08:15:54 +00:00
Arvid Norberg 8e899fa9fd updated the assert macro to send SIGINT to the process (to break into the debugger) and also to be used on macos 2007-09-17 02:32:51 +00:00