Commit Graph

866 Commits

Author SHA1 Message Date
Arvid Norberg
fa8c0c1133 fixed missing include 2007-11-18 01:34:43 +00:00
Arvid Norberg
7be29d9b84 applied 'logpath' patch from #202 2007-11-16 21:21:28 +00:00
Arvid Norberg
95d09070fb cancels more async operations on shutdown 2007-11-11 19:09:29 +00:00
Arvid Norberg
41ef204f26 closes bandwidth rate limiters 2007-11-08 07:52:41 +00:00
Arvid Norberg
80e8aa0a18 add_extension on torrent_handle, to add an extension on an already running torrent 2007-11-08 01:45:35 +00:00
Arvid Norberg
53c125a9b3 made entry not require exceptions 2007-11-02 02:02:52 +00:00
Arvid Norberg
cb9fbea5f7 made bdecoder not require exception support 2007-11-02 01:08:10 +00:00
Arvid Norberg
fd51412b70 shutdown improvements. Fixes stall 2007-11-02 00:27:53 +00:00
Arvid Norberg
d2880ff648 made allocate_send_buffer, setup_send and send_buffer virtual in peer_connection. Fixes #196 2007-10-31 10:20:05 +00:00
Arvid Norberg
1a280e31fa cleanup. changed the connection map into a set of peer_connections. moved the policy object into the torrent (as opposed to being a pointer). Fixes issues with multiple peers on the same IP. Reduces some lookups. 2007-10-31 09:48:20 +00:00
Arvid Norberg
6aeefaf513 removed self() from peer_connection, since it's in intrusive_ptr_base now 2007-10-31 09:44:31 +00:00
Arvid Norberg
0439399169 replaced std::vector with buffer 2007-10-30 17:30:49 +00:00
Arvid Norberg
e28689237d uses checked_delete instead of plain delete 2007-10-30 10:08:09 +00:00
Arvid Norberg
8f07edbed2 asio handlers are now properly cancelled when destructing the session object, race conditions are avoided by waiting for the io service to complete all tasks 2007-10-26 07:14:19 +00:00
Arvid Norberg
636d5f2005 upnp fixes and more debug asserts and more logging. Might fix #167 2007-10-26 00:47:30 +00:00
Arvid Norberg
ee61db101e variant_stream fix 2007-10-26 00:43:28 +00:00
Arvid Norberg
5f89db91a3 query extra fields in torrent files without requiring exception handling 2007-10-24 18:15:13 +00:00
Arvid Norberg
96ba6bc3b2 piece picker priority fix 2007-10-23 22:10:08 +00:00
Arvid Norberg
f054ae7c2d made the handshake timeout configurable and defaults to 10 seconds 2007-10-23 00:19:28 +00:00
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
78f0aaf654 applied patch from #184 2007-10-13 18:24:24 +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
29c8cc1a98 fixed makefile to include new asio headers 2007-09-29 22:11:22 +00:00