Arvid Norberg
ae3b629649
improve invariant check of file_progress class ( #787 )
2016-06-05 14:06:11 -04:00
arvidn
8baf4f810a
fix graceful pause issue
2016-06-04 21:35:12 -04:00
Arvid Norberg
8c8f5bb03b
deprecated public to_hex() and from_hex() functions ( #784 )
2016-06-04 10:01:43 -04:00
Arvid Norberg
be67553897
simplify session pause mechanism by keeping two separate states in torrents and having the session explicitly tell torrents when it's pausing ( #779 )
2016-06-03 07:32:48 -04:00
Arvid Norberg
14d085f607
rename allow_peers to paused ( #773 )
2016-06-01 01:05:32 -04:00
Arvid Norberg
92cd0ec7d1
simplify and clean up peer_list usage in torrent.cpp ( #772 )
2016-06-01 01:05:17 -04:00
arvidn
ec182492cc
improve add_torrent_params::flags documentation and fix related logging bug
2016-05-30 16:36:44 -07:00
arvidn
420b5f51e6
merged RC_1_1 into master
2016-05-27 12:35:53 -07:00
Alden Torres
f8dcf30b2e
Ported support for magnet x.pe parameter from master ( #760 )
2016-05-27 12:12:32 -04:00
Arvid Norberg
96999ad67f
replace uses of boost::bind with std::bind and lambdas ( #745 )
2016-05-25 00:31:52 -04:00
Arvid Norberg
748af6eec1
general cleanup. remove valgrind markup, log_hash_failures and C headers ( #752 )
...
general cleanup. remove valgrind markup, log_hash_failures and C headers
2016-05-23 08:15:39 -04:00
arvidn
f1216686d2
merged RC_1_1 into master
2016-05-23 00:56:16 -04:00
Arvid Norberg
62fb7209ef
fix invariant check issue with a paused session ( #750 )
...
fix invariant check issue with a paused session
2016-05-22 22:58:11 -04:00
Arvid Norberg
cf3c95702b
Peer blocked alert ( #747 )
...
make peer_blocked_alert derive from peer_alert
2016-05-22 19:56:14 -04:00
Arvid Norberg
dceee3b065
simplify session call and replace session_handle and torrent_handle macros ( #741 )
...
remove use of macros in session_handle and torrent_handle forwarders
2016-05-21 19:05:42 -04:00
Arvid Norberg
e8380e1d0b
factor out includes from config.hpp into the files actually using it. primarily, printf family of functions, since C++11 version is used now. This removes the need for an snprintf-wrapper on windows ( #732 )
2016-05-17 09:24:06 -04:00
Arvid Norberg
29902be3a0
some general C++ 11 cleanup. some typedefs and for loops ( #709 )
2016-05-07 18:46:42 -04:00
arvidn
254906eddc
back-port torrent peer-class fix from master
2016-05-07 14:56:22 -04:00
Arvid Norberg
8922990fc7
fix peer class leak in torrent and widen peer_class_t to allow for mo… ( #707 )
...
fix peer class leak in torrent and widen peer_class_t to allow for more instances
2016-05-07 14:52:10 -04:00
arvidn
6cf5ac9dd1
merged RC_1_1 into master
2016-05-06 01:08:05 -04:00
Arvid Norberg
985436636e
added new preformatted type to bencode entry ( #698 )
...
added new preformatted type to bencode entry to support carrying a verbatim copy of an already bencoded subtree. This is to support saving torrents in resume data and create_torrent based on existing torrents, in order to preserve key order
2016-05-05 21:38:57 -04:00
Arvid Norberg
f9bc6dbc54
improvements to socks5 support (for 1.1.1 release) ( #567 )
...
capture listen IP and port from socks5 BIND response. add tests for socks5 and improve support for capturing the local endpoint (i.e. bind port) for BIND command socket connections. post listen_succeeded_alert when successfully bound to listen socket on SOCKS5 proxy. make sure to announce the socks5 listen port
2016-05-05 17:09:11 -04:00
Jonathan McDougall
f065cacebf
* now calling stop_announcing() unconditionally instead of checking !is_paused(), which was always false when aborting a torrent and could cause infinite blocks while destroying a session ( #694 )
...
fixed torrent invariant check that wasn't using the m_abort flag and correctly stop trackers when shutting down
2016-05-03 01:34:43 -04:00
Arvid Norberg
c91a700c07
Msvc warnings ( #685 )
...
fix msvc warnings and build examples with warnings-as-errors
2016-05-02 12:36:21 -04:00
arvidn
36a5a11ee2
merge fix
2016-04-29 23:34:25 -04:00
Arvid Norberg
f0d95f5e3e
remove RSS feature ( #662 )
...
remove RSS feature
2016-04-29 15:54:21 -04:00
Arvid Norberg
46b33f920b
remove explicit cache feature ( #661 )
...
remove explicit cache feature
2016-04-29 02:32:00 -04:00
Arvid Norberg
10ec0234a7
remove resolve-country feature ( #656 )
2016-04-28 08:20:47 -04:00
Andrei Kurushin
62eb956c54
fix x64 build with VS2015 UP2 compiler ( #640 )
...
fix VS2015 compiler warnings for: address-model=64, deprecated-functions=on, link=shared
2016-04-25 17:22:09 -04:00
Alden Torres
7c4fabadfd
Removed unused statement ( #643 )
2016-04-24 23:47:57 -04:00
arvidn
b5ecfa4f91
fix merge issues
2016-04-24 16:43:45 -04:00
Arvid Norberg
7251575d98
This patch does: ( #633 )
...
1. simplifies and regularizies creation of listen sockets based on the listen
interfaces setting.
2. simplifies and improves the behavior of UDP sockets, which are now explicitly
opened per listen interface
3. transitions udp tracker, DHT and uTP socket manager over to using the new
udp sockets
4. greatly simplified udp_socket to only wrap a single underlying socket (as
opposed to one IPv4 and IPv6 socket)
5. improved behavior of bind-to-device
6. introduce an array_view type to make udp packet passing code simpler
7. simplify and make setting of DF flag more robust
8. simplify and regularize port mapping of listen sockets
2016-04-24 15:26:28 -04:00
Arvid Norberg
c9c6dd2d3b
clean up the annotations used for asio debugging ( #639 )
...
clean up the annotations used for asio debugging (tracking outstanding async operations)
2016-04-23 17:29:25 -04:00
Andrei Kurushin
7b5d48c02a
fix default release build with VS2015 UP2 compiler warnings ( #624 )
...
* fix default release build with VS2015 UP2 compiler warnings
this will allow to successfully build:
bjam toolset=msvc-14.0 release deprecated-functions=off character-set=unicode link=static warnings-as-errors=on
2016-04-17 16:56:07 -04:00
arvidn
867b83ccda
merged RC_1_1 into master
2016-04-08 02:20:24 -04:00
arvidn
cee2b16949
fix some coverity warnings and move out code to torrent_status.cpp
2016-04-07 21:44:24 -04:00
arvidn
876cef0d4c
restore the ipv6 http tracker argument, but restricted to only private torrents
2016-04-07 00:06:04 -04:00
arvidn
7f232dd195
fix python3 issue in binding
2016-03-30 23:35:47 -04:00
arvidn
96e2693d13
merge RC_1_1 into master
2016-03-19 16:02:46 -04:00
arvidn
f7c9062019
deprecate more parts of explicit cache as well as fixing typos of TORRENT_NO_DEPRECATE preprocessor tests
2016-03-19 07:54:29 -04:00
arvidn
3c98868f6c
deprecate explicit cache feature
2016-03-18 12:15:03 -04:00
arvidn
f79a9c7adf
merged RC_1_1 into master
2016-03-16 19:59:53 -04:00
arvidn
921cbeebed
add option to delete just the partfile when removing a torrent
2016-03-14 08:26:39 -04:00
arvidn
6d85c7c5f0
merge RC_1_1 into master
2016-03-08 01:10:48 -05:00
arvidn
71e3fb8941
fix division by zero in super-seeding logic
2016-03-07 23:40:01 -05:00
arvidn
f5d5ac4f3a
fix bug where disk cache was wiped out after completion file-checking. factor out sim test utilities and reuse them in the regression test
2016-03-06 21:44:38 -05:00
arvidn
67774d660d
always keep at least 2 async hash jobs outstanding when rechecking torrents (to keep the bandwidth delay product full)
2016-03-06 16:31:18 -05:00
arvidn
e851b79865
fix issue when shutting down a torrent with outstanding async operations
2016-03-02 01:16:08 -05:00
arvidn
2fd8047308
merged RC_1_1
2016-02-24 21:22:39 -05:00
arvidn
e5ccb63375
fix build with openssl and deprecated functions disabled
2016-02-24 02:07:27 -05:00
arvidn
57aa813135
fix auto-managed issue with torrents transitioning to 'slow' as they get paused, returning to life again later because of it
2016-02-23 01:28:58 -05:00
arvidn
967ec412a5
Merge branch 'RC_1_1'
2016-02-21 15:21:33 -05:00
Arvid Norberg
d172733c87
Merge pull request #487 from arvidn/fix-resume-checking-torrent
...
fix resuming of torrents that were checking files
2016-02-21 15:21:10 -05:00
arvidn
421bef5b68
fix resuming of torrents that were checking files
2016-02-21 11:32:50 -05:00
arvidn
cc8066bf11
properly deprecated adding torrents by http url
2016-02-21 11:31:42 -05:00
arvidn
3f3b366ed5
be a bit more strict about when the STL containers need complete types (to make it build under GCC with concept checks enabled). add proper assignment operator to types used in STL containers
2016-02-21 11:29:01 -05:00
Arvid Norberg
5d18800e04
Merge pull request #486 from arvidn/force-recheck-1.1
...
make force recheck a bit more robust
2016-02-20 19:53:56 -05:00
arvidn
3231aa4c9d
make force recheck a bit more robust by initializing the progress state immediately
2016-02-20 15:53:43 -05:00
arvidn
3f40890eb6
simplify logic for saving resume a bit
2016-02-20 15:45:46 -05:00
arvidn
d599bef0ee
add unit test for read_resume_data
2016-02-20 13:26:21 -05:00
arvidn
b581fef437
resume checking of torrents
2016-02-20 13:26:21 -05:00
arvidn
a5d131b1bb
post fastresume_reject_alerts when building with deprecated functions enabled
2016-02-20 13:26:21 -05:00
arvidn
cc49b876bb
add flag for initializing m_need_save_resume_data when adding torrent
2016-02-20 13:26:21 -05:00
arvidn
40f6afc2f8
save and restore storage allocation mode in resume data
2016-02-20 13:26:21 -05:00
arvidn
c9d7e54d7b
make tests pass
2016-02-20 12:50:52 -05:00
arvidn
8135ea326f
rename async_check_fastresume to async_check_files, and make it take an add_torrent_params object instead of bencoded resume data
2016-02-20 02:00:07 -05:00
arvidn
4ef55073e3
transition mapped_files over to the new add_torrent_params
2016-02-20 02:00:07 -05:00
arvidn
6e88771981
transition merkle tree support over to the new read_resume_data()
2016-02-20 02:00:07 -05:00
arvidn
6223057b1e
added support for pieces, verified pieces and piece_priorities in new resume data scheme
2016-02-20 02:00:07 -05:00
arvidn
a60bbe0a1c
fix loading of peers and banned_peers from resume_data
2016-02-20 02:00:07 -05:00
arvidn
35b998f90d
introduce backwards-compatibility, of loading resume data and merging it with the add_torrent_params. add some more missing fields. deprecate some more flags in add_torrent_params
2016-02-20 02:00:07 -05:00
arvidn
e0ee12d4f3
remove m_resume_data and m_resume_data_loaded members from torrent
2016-02-20 02:00:06 -05:00
arvidn
197ded5a0d
revamp the way resume data is read, by providing a function for the client to parse resume data, capturing it in add_torrent_params
2016-02-20 02:00:06 -05:00
arvidn
1710b7c750
Merge branch 'RC_1_1'
2016-02-20 01:58:39 -05:00
arvidn
5cf36fd1d6
only save pieces in resume data that have actually been checked
2016-02-20 00:48:17 -05:00
arvidn
6d77000ab0
deprecate ssl_listen setting. instead ssl sockets are specified by an 's' suffix of the port in listen_interfaces.
2016-02-12 15:46:12 -05:00
arvidn
887e79eb22
improve support for listening on multiple sockets and interfaces, with the listen_interfaces setting
2016-02-12 15:44:17 -05:00
arvidn
4f40f84a7e
Merge branch 'RC_1_1'
2016-02-08 15:28:34 -05:00
arvidn
dd48faa8d4
minor debug logging issue in test facility wait-for-alert and fix minor shutdown issue with udp_socket packet subscription
2016-02-08 02:05:00 -05:00
arvidn
f4627db97f
removed unused field in torrent
2016-02-07 02:37:32 -05:00
arvidn
ae7058e119
remove the timestamps and file sizes from the resume data. This makes saving resume data alot cheaper, since it doesn't have to go via the disk thread. It also removes an old-standing API usage issue where there was easily a race condition introduced between saving resume data and pausing a torrent.
2016-02-06 15:50:55 -05:00
arvidn
f31d17c9c5
allow specifying which tracker to scrape in torrent_hadnle::scrape_tracker
2016-01-26 18:14:32 -05:00
arvidn
1f9f588e75
merge copyright year update and changelog from RC_1_0
2016-01-17 18:57:46 -05:00
Arvid Norberg
fa391d4961
Merge pull request #394 from arvidn/forward-port-http-fix
...
forward port fix for web seeds not being used by torrents added by URL
2016-01-17 17:47:25 -05:00
arvidn
0c971d0d62
forward port fix for web seeds not being used by torrents added by URL
2016-01-16 23:57:33 -05:00
arvidn
3cd57b59e0
when a tracker is force announced or scraped by the user/client, the resulting response or failure alert is now posted regardless of the alert mask. Since it's user initiated, it's reasonable to expect the user to be interested in the response
2016-01-16 21:24:04 -05:00
arvidn
1f3f06a836
forward port fix for deleting files of magnet link to master
2015-12-18 18:33:31 -05:00
arvidn
645b121df6
deprecate resolve-countries
2015-12-14 21:32:30 -05:00
arvidn
1712a8e4b4
polish the stop-when-ready flag and improve documentation
2015-12-13 20:31:28 -05:00
arvidn
4b6e11cc07
deprecate set_tracker_login
2015-12-13 15:14:19 -05:00
arvidn
0f9d82ab22
fix bug in handling force-started checking torrents
2015-12-12 15:08:38 -05:00
arvidn
d505f93d7a
port sim tests to use the new setup_swarm API
2015-12-12 00:41:47 -05:00
arvidn
cc3b064cff
fix graceful pause issue. peers regularly check whether they should disconnect or not
2015-12-04 23:27:43 -05:00
arvidn
60df41cd85
fix save_resume_data in client_test and make torrent a bit more instrumentable. This could be greatly simplified if resume data would not have file_sizes and timestamps
2015-11-29 20:31:57 -05:00
arvidn
2c3d7ee0ef
fix a bug where the torrent's invariant was not always maintained as well as a shutdown issue (now covered by test as well)
2015-11-28 14:14:49 -05:00
arvidn
51df32a25b
fix logging issue
2015-11-27 14:04:46 -05:00
arvidn
847cd340ee
extend tracker sim test and fix some bugs in tracker error reporting
2015-11-24 23:38:49 -05:00
arvidn
06b648203f
clean up use of error categories
2015-11-24 00:50:51 -05:00
arvidn
c0d6b20634
extend swarm simulation test to include stopping and starting and graceful pause
2015-11-20 22:27:12 -05:00
Arvid Norberg
2eabf99307
Merge pull request #276 from arvidn/msvc-warnings
...
attempt to fix some msvc warnings
2015-11-20 08:04:38 -05:00
arvidn
4c790043a1
fix invariant check failure in torrent::pause
2015-11-20 01:38:21 -05:00
arvidn
4aaa8ca4a9
silence msvc performance warnings. introduce more override and finals
2015-11-19 23:37:45 -05:00
arvidn
2626159abe
use a consistent random number generator to make simulations deterministic
2015-11-12 00:21:56 -05:00
arvidn
fbf152abc0
attribute external IP voting to the actual tracker IP we connected to, and preserve endpoint list in http_connection to make the re-announce to IPv6 logic robust
2015-11-11 01:30:28 -05:00
arvidn
ebb9fdaf54
add error_code to torrent_status instead of error string
2015-11-05 20:43:23 -05:00
arvidn
729a8e9152
update libsimulator. add simulation/test for announcing twice to trackers over IPv4 and IPv6. fix bugs preventing libtorrent from doing that correctly
2015-10-27 00:21:07 -04:00
Arvid Norberg
ea86785d45
Merge pull request #202 from arvidn/stop-when-ready
...
Stop when ready
2015-10-04 16:18:59 -04:00
arvidn
8eded0a2a0
forward port set_allow_peers bugfix
2015-10-04 14:41:58 -04:00
arvidn
51c6079c42
add stop-when-ready feature, to support checking torrents without starting the download afterwards
2015-10-04 13:08:23 -04:00
arvidn
3d54c02450
fix build
2015-10-03 11:42:21 -04:00
arvidn
c798e388a9
forward port fix to proxy_peer_connections to master
2015-10-03 11:20:10 -04:00
arvidn
424e51b737
fix build
2015-09-30 00:41:41 -04:00
arvidn
a00e5aa6c7
forward port patch to have resume data web seeds override .torrent file web seeds, and a flag to merge them
2015-09-30 00:41:41 -04:00
arvidn
5da511f140
now that force-started torrents aren't affected by the auto-manager, they need to be explicitly kicked when entering checking state (it would be nice if all this could be done through set_state())
2015-09-29 20:49:38 -04:00
arvidn
dab0f8b8d0
simplify the queuing logic for checking torrents. make all non-auto-managed torrents always be exempt from any queuing mechanism (including checking). Extend documentation on how it works
2015-09-29 20:49:37 -04:00
arvidn
8b30e78d69
forward port fix for bug where dont_count_slow_torrents could not be disabled, into master
2015-09-25 14:22:38 -07:00
arvidn
fb2f659a31
fix bug in time keeping of active_time, seeding_time, finished_time etc.
2015-09-21 00:38:56 -07:00
arvidn
2715ae475c
expose whether torrents are announcing to trackers, lsd and dht. these can be disabled by the queuing logic
2015-09-19 01:54:47 -04:00
arvidn
b628692223
separate out announce_entry and torrent_status into their own headers
2015-09-18 08:08:08 -04:00
arvidn
ee3cb6cf86
move some internal headers to aux_ to fix documentation
2015-09-07 17:00:27 -04:00
arvidn
17c5759829
disable warning for unused command line argument and fix warnings. remove redundant travis build config. use new preprocessor on clang to avoid warnings
2015-09-06 22:55:41 -04:00
arvidn
0d9d632465
initial support for disabling proxy for tracker connections
2015-08-29 19:44:54 -04:00
arvidn
ba95aa27d6
cleanup unused code
2015-08-29 16:07:19 -04:00
arvidn
5757b0ad13
polish some behavior when setting piece and file priorities for torrents with no metadata. Fix the initialization order of peers once we do get the metadata
2015-08-29 10:21:15 -04:00
arvidn
beb5455331
add disk I/O read asserts and fix i2p issue if a tracker responds with i2p peers when i2p is not configured on the client
2015-08-28 07:20:21 -04:00
arvidn
6012306557
add more asserts for the size of the bitfields peers send
2015-08-27 21:48:52 -04:00
arvidn
82a3683f7d
polish removal of web seeds logic
2015-08-23 11:01:55 +02:00
arvidn
a42f9e0c63
fix more warnings
2015-08-22 00:28:12 +02:00
arvidn
26b721973f
fix typo
2015-08-21 10:43:14 +02:00
arvidn
b7b0dafcca
fix some warnings
2015-08-21 10:05:51 +02:00
arvidn
ffa870d280
fixed some GCC warnings
2015-08-20 01:33:20 +02:00
arvidn
26fecaf037
fix more warnings
2015-08-18 16:42:03 +02:00
arvidn
f6b86dc4b5
add typesafety to piece_picker torrent_peer pointers. and fix a few incorrect uses
2015-08-18 04:25:13 -04:00
arvidn
eecdd3121d
fix some build warnings
2015-08-17 09:01:43 -04:00
arvidn
9a0092c120
fix some warnings
2015-08-16 12:17:23 -04:00
arvidn
16bb2de6ed
fix some warnings
2015-08-13 23:52:25 -04:00
arvidn
225b82d9a0
move test_trackers_extensions over to a simulation and some minor metadata extension and tracker re-announce fixes
2015-08-13 23:07:04 -04:00
Arvid Norberg
68bc4f2cf4
Merge pull request #12 from mlt/wip/i2p
...
Few i2p fixes
2015-08-13 21:55:27 -04:00
arvidn
a81ca2391b
fix some warnings
2015-08-10 20:03:24 -04:00
arvidn
fb34607313
fix crash when loading a resume file where all files have priority 0 (and the torrent finishes before having downloaded anything) and add unit test for this case
2015-08-05 20:13:58 -04:00
arvidn
bb64887f30
merge total wanted fix from RC_1_0
2015-08-02 15:18:21 -04:00
arvidn
655a3ae019
fix some warnings
2015-08-01 23:57:11 -04:00
arvidn
7f695f05d5
use boost.asio as headers only library again (simplify builds and hopefully fix shared linking of python module on gcc linux)
2015-07-27 23:09:24 -07:00
arvidn
105c105867
merge seed mode test and fixes from RC_1_0
2015-07-27 00:01:19 -07:00
Arvid Norberg
742548b69c
Merge pull request #49 from ssiloti/plugin-exported-api
...
Only use exported types in the plugin api
2015-07-25 15:53:22 -07:00
Steven Siloti
e6b3df3696
pass torrent_handle by const ref in the plugin api
2015-07-25 09:57:55 -07:00
Steven Siloti
72dcc20073
pass peer_connection_handle by const ref in the plugin api
2015-07-25 09:15:24 -07:00
arvidn
40c7596da9
merge loading of piece priorities from resume data fix from RC_1_0
2015-07-24 22:34:53 -07:00
Steven Siloti
fbc67b4e21
switch to torrent_handle in plugin api
2015-07-23 19:52:23 -07:00
arvidn
bb705e9a52
improved seed-mode handling (seed-mode will now automatically be left when performing operations implying it's not a seed). fixed issue with file priorities and override resume data
2015-07-21 10:12:37 -07:00
arvidn
7a3cabfe12
fixed some resume issues, specifically around file priorities and override resume data
2015-07-16 21:56:06 -04:00
arvidn
a65b71b855
improve logging of adding peers and the state of torrents. the default flags for the external connect_peer() call now assumes encryption, uTP and holepunch support
2015-07-16 21:53:31 -04:00
Mikhail Titov
2751d90368
Don't store 0.0.0.0 for i2p peers in resume data
2015-07-14 14:13:17 -05:00
Mikhail Titov
df21a7e8ce
Use scrape & i2p bitset flags for request
2015-07-14 14:13:10 -05:00
Mikhail Titov
5d3938b39b
Parse compact response from I2P tracker
...
This fixes #2
2015-07-14 14:13:09 -05:00
Steven Siloti
9bf1d6c5e9
peer_connection_handle
2015-07-12 14:40:03 -07:00
arvidn
1c708cca28
fix build
2015-07-05 21:41:53 -04:00
arvidn
78399f7968
shave off some includes in torrent.cpp
2015-07-05 19:32:13 -04:00
arvidn
3b3a23a87a
whitespace
2015-07-05 18:33:47 -04:00
arvidn
d1670c72c2
removed sparse-regions support
2015-06-29 20:40:32 -04:00
arvidn
d887f5719d
it's called peer_list now
2015-06-29 19:56:39 -04:00
arvidn
e2784df13c
factor out file progress tracking from the torrent class
2015-06-28 22:47:11 -04:00
arvidn
4054b4374b
whitespace
2015-06-22 23:32:02 -04:00
arvidn
130fc2d640
forward port logging patch from RC_1_0
2015-06-22 02:14:17 -04:00
arvidn
8b66fbe194
fix bug in previous commit
2015-06-20 18:17:49 -04:00
arvidn
665b553941
merged logging patch from RC_1_0
2015-06-20 17:51:59 -04:00
arvidn
ad8971d6da
fix typo
2015-06-20 16:42:18 -04:00
arvidn
c2eaa26ce6
whitespace
2015-06-20 13:44:07 -04:00
arvidn
8d408c4c86
add shortcut in async resolver for raw IPs.
2015-06-16 23:45:05 -04:00
arvidn
323af56cc2
update interest when changing upload-only mode
2015-06-16 01:24:35 -04:00
arvidn
bd2bcf12bc
fix bug on write-only disk errors (it's not supposed to stop the torrent)
2015-06-15 02:27:09 -04:00
arvidn
0d6e65ec24
improve reliability of some of the unit tests
2015-06-10 01:22:01 -04:00
arvidn
9af8841244
remove some unnecessary asio typedefs in the libtorrent namespace, just pull ip::tcp and ip::udp
2015-06-06 13:49:18 -04:00
arvidn
41533205be
drop support for boost 1.35 and fix some more references to the asio namespace
2015-06-06 02:10:53 -04:00
Arvid Norberg
d43f7b56a2
update copyright year
2015-06-03 05:18:48 +00:00
Arvid Norberg
9b0313bd8e
hold settings_pack by shared_ptr when passing it across thread boundaries. don't allocate it on the heap redundantly
2015-05-29 05:27:53 +00:00
Arvid Norberg
06bf225237
fix release build and tune want_tick
2015-05-26 20:09:19 +00:00
Arvid Norberg
09bc072c31
inactive/auto managed fixes. fix client_test key input
2015-05-26 18:39:49 +00:00
Arvid Norberg
c6f8dd408a
optimize recalculate auto-managed
2015-05-25 21:46:42 +00:00
Arvid Norberg
0de44067aa
fix warnings
2015-05-19 04:59:31 +00:00
Arvid Norberg
607e708bc4
fix warnings
2015-05-19 03:13:49 +00:00
Arvid Norberg
9ee98b3ed1
fix build warnings
2015-05-18 05:04:55 +00:00
Arvid Norberg
58ae099cf8
clean up disk_io_job a bit to avoid old-style casts
2015-05-16 20:41:37 +00:00
Arvid Norberg
2bf4519bee
make the torrent hold a pointer to the ip_filter instead of relying on a session reference
2015-05-16 06:33:37 +00:00
Arvid Norberg
b418aeb466
merged fixes from RC_1_0
2015-05-10 23:00:23 +00:00
Arvid Norberg
1357fd5265
clean up usage of printf attribute (encapsulate it in a macro)
2015-05-10 05:11:51 +00:00
Arvid Norberg
4b585dcc0e
minor cleanup and fix no-deprecated build
2015-05-06 01:11:54 +00:00
Arvid Norberg
f90537c52d
fix some more coverity issues and add more todo comments
2015-05-05 02:32:14 +00:00
Arvid Norberg
4a304273fd
fix some coverity issues
2015-05-03 03:28:39 +00:00
Arvid Norberg
4f216dece3
factor out strings of peer logs to be enums instead, in peer_log_alert
2015-05-03 02:53:54 +00:00
Arvid Norberg
0d72163a56
fix coverity warnings
2015-04-29 05:46:35 +00:00
Arvid Norberg
a15bc13392
build fixes
2015-04-26 13:38:56 +00:00
Arvid Norberg
821e34c795
fix examples build. fix print formatting bugs. fix some gcc warnings
2015-04-25 04:22:51 +00:00
Arvid Norberg
8e08cd7639
deprecate use of boost.date_time. use boost.chrono instead
2015-04-25 01:40:39 +00:00
Arvid Norberg
0b063de9ff
fix more warnings
2015-04-21 04:30:34 +00:00
Arvid Norberg
3951377d95
fix include paths for warning push and pop headers
2015-04-21 01:16:28 +00:00
Arvid Norberg
4d15f1410f
fix warnings, some clean-up and todo comments
2015-04-20 04:52:49 +00:00
Arvid Norberg
408232cfc8
raise warning level. fix a few of them. filter out warnings from boost
2015-04-18 02:33:39 +00:00
Arvid Norberg
1faf2e201f
inversed TORRENT_LOGGING build config to enable logging by default. It's now disabled by TORRENT_DISABLE_LOGGING
2015-04-17 01:15:33 +00:00
Arvid Norberg
013ed36f09
landed alert_queue feature branch into trunk
2015-04-03 20:15:48 +00:00
Arvid Norberg
ccc7e45406
landed mutable torrents branch in trunk
2015-03-21 00:12:40 +00:00
Arvid Norberg
6c1df7eb55
landed the bdecode branch in master. lazy_bdecode/lazy_entry is now being replaced by bdecode/bdecode_node
2015-03-12 05:20:12 +00:00
Arvid Norberg
c1dc982f4f
deprecate the ptime type and related time types. just use boost::chrono / std::chrono
2015-03-12 04:34:54 +00:00
Arvid Norberg
f364fe7beb
include tracker message in tracker_alert
2015-02-21 22:45:45 +00:00
Arvid Norberg
91270a0c2b
make operation_t public and document it. include peer disconnects in client_test log
2015-02-15 05:17:09 +00:00
Arvid Norberg
2fdb7499fa
optimize block_info allocation and downloading_piece size in piece_picker
2015-02-14 21:32:41 +00:00
Arvid Norberg
51f1a61d2d
more piece_picker unit tests and some fixes
2015-02-13 02:58:21 +00:00
Arvid Norberg
678385f358
share mode polish and remove old comment
2015-02-08 22:29:10 +00:00
Arvid Norberg
7395a91bf4
clean up piece picker interface to make piece_pos private again
2015-02-08 22:15:59 +00:00
Arvid Norberg
9fb98b1151
remove speed affinity feature in piece-picker and peers
2015-02-08 21:17:00 +00:00
Arvid Norberg
1b9b6f7292
support http basic auth in http_connection passed in from the outside as opposed to part of the url
2015-02-08 16:03:09 +00:00
Arvid Norberg
9b91508c38
clean up session_interface and tracker_manager a bit. work on making tracker_manager more testable
2015-02-01 14:30:43 +00:00
Arvid Norberg
097d5b484d
improve piece picker support for reverse picking (used for snubbed peers) to not cause priority inversion for regular peers
2015-01-26 02:04:58 +00:00
Arvid Norberg
d9e69db0cb
actually make use of the max_failcount setting
2015-01-20 06:26:22 +00:00
Arvid Norberg
1ab8d2fa5c
fix test_privacy build. fix uninitialized bit in torrent. attempt to filter output from valgrind in regression tests
2015-01-16 04:57:58 +00:00
Arvid Norberg
0f37e3403c
transition from intrusive_ptr to shared_ptr. don't export initialize_default_settings
2015-01-06 08:08:49 +00:00
Arvid Norberg
f77e12ac04
clean up symbol exports
2015-01-01 20:25:39 +00:00
Arvid Norberg
092362e9bc
remove internal fields from web_seed_entry
2014-12-31 22:05:34 +00:00
Arvid Norberg
1039d4ae86
tweak some TODO comments and fix one
2014-12-31 14:41:35 +00:00
Arvid Norberg
bc117e5f40
merged changes from RC_1_0
2014-12-31 09:30:23 +00:00
Arvid Norberg
ae47823970
don't fail renaming a file in a torrent just because it doesn't exist (and the destination directory doesn't exist)
2014-12-26 21:25:37 +00:00
Arvid Norberg
0977d94dbc
merged changes from RC_1_0
2014-12-25 11:24:02 +00:00
Arvid Norberg
ae04b80fe1
cancel non-critical DNS lookups when shutting down, to cut down on shutdown delay
2014-12-17 02:44:27 +00:00
Arvid Norberg
09bc1550e9
simplify the debug logging mechanism. There's now only one build option, logging=on or logging=off. When logging is enabled, the log level is controlled by the alert mask. All log events are delivered as alerts and it's up to the client to write them to disk in whatever way seems appropriate. removed the pointless logger plugin
2014-12-09 09:08:26 +00:00
Arvid Norberg
1ed1963f29
remove size_type typedef in favor of boost::int64_t
2014-12-03 04:32:50 +00:00
Arvid Norberg
4376d26399
merged changes from RC_1_0
2014-12-01 10:43:34 +00:00
Arvid Norberg
658e2ceefd
merged Steven Siloti's peer crypto patch into trunk
2014-11-23 06:14:47 +00:00
Arvid Norberg
bfb0c4fe80
merged changes from RC_1_0
2014-11-12 16:57:59 +00:00
Arvid Norberg
2514e7a0e2
fix file_progress
2014-11-11 09:08:47 +00:00
Arvid Norberg
e526355d24
merged changes from RC_1_0
2014-11-09 11:17:13 +00:00
Arvid Norberg
77363ad93e
fix file progress calculation bug (with unit test)
2014-11-08 18:36:54 +00:00
Arvid Norberg
aae56c991c
merged changes from RC_1_0
2014-11-08 16:58:18 +00:00
Arvid Norberg
8bd8426f04
merged changes from RC_1_0
2014-10-26 17:48:50 +00:00
Arvid Norberg
85cc72835e
finally rename policy to peer_list
2014-10-26 07:34:31 +00:00
Arvid Norberg
d9388f9898
moved around some hostname resolver related TODO comment. removed unused hostname query objects
2014-10-23 00:19:11 +00:00
Arvid Norberg
d287ce9c46
fix issue when hash checking files resulting in a short read
2014-10-12 23:49:51 +00:00
Arvid Norberg
32d368e1ce
merged changes from RC_1_0
2014-10-12 18:16:46 +00:00
Arvid Norberg
a113988e81
do a slightly better job of deciding which peers to save in resume data
2014-10-07 08:29:20 +00:00
Arvid Norberg
0cd2e74f28
remove invalid assert
2014-10-06 05:02:00 +00:00
Arvid Norberg
8168c8520a
minor tweak to inactivity timer fix
2014-10-05 22:31:29 +00:00
Arvid Norberg
30d7b9e3c3
fixed bug with inactivity timer
2014-10-05 22:30:09 +00:00
Arvid Norberg
418e33facc
use the session-wide hostname resolver in torrent.cpp
2014-10-05 01:23:22 +00:00
Arvid Norberg
3c7a932aee
update comments
2014-10-04 20:06:46 +00:00
Arvid Norberg
d296960efa
fix build with verbose logging
2014-10-04 19:54:12 +00:00
Arvid Norberg
520aead4da
fix auto_sequential logic
2014-10-04 07:41:41 +00:00
Arvid Norberg
ceccc2a483
land branch to remove half-open connection limit / connection queue
2014-10-03 20:56:57 +00:00
Arvid Norberg
8664ff97aa
optimize tracker_manager interface to avoid rendering and parsing strings for each peer-ip
2014-09-28 06:36:03 +00:00
Arvid Norberg
19d0087911
one last fix to the web_seed_entry patch
2014-09-28 05:41:50 +00:00
Arvid Norberg
6a4a5419c2
one more fix
2014-09-28 04:05:44 +00:00
Arvid Norberg
154cbeb5cf
support web seeds that resolve to multiple IPs
2014-09-28 02:20:13 +00:00
Arvid Norberg
9a985d197f
optimize num_seeds() and num_downloaders() to not count the peers every time
2014-09-24 09:03:57 +00:00
Arvid Norberg
60119bf0ca
added auto-sequential feature
2014-09-24 00:02:00 +00:00
Arvid Norberg
7a55069ec9
add additional single-thread asserts and separate torrents from the session (in preparation for running them in separate threads/strands)
2014-09-22 17:41:06 +00:00
Arvid Norberg
a6eda97281
fix optimistic unchoke stats gauge
2014-09-22 07:34:10 +00:00
Arvid Norberg
d7d498c3a3
more steps towards isolating peer_connections from the session object. unchoking now happens via the torrent object. hopefully in the future, the session can determine which peers to unchoke without having direct access to them (i.e. with a mutex)
2014-09-22 03:47:43 +00:00
Arvid Norberg
27b7705cf2
remove built-in GeoIP support
2014-09-21 21:01:48 +00:00
Arvid Norberg
4d57456199
merged changes from RC_1_0
2014-09-02 06:28:27 +00:00
Arvid Norberg
db788c9180
fix to make active_time, seeding_time, finished_time and upload_only_time all work for torrents that are not being ticked
2014-08-27 06:36:28 +00:00
Arvid Norberg
d2c64915bf
simplified want_peers expression
2014-08-22 08:55:37 +00:00
Arvid Norberg
524384045c
transition to use boost.random instead of rand() and custom pseudo random generator
2014-08-16 20:26:00 +00:00
Arvid Norberg
5e54d13dec
merge fixes from RC_0_16
2014-08-07 05:00:29 +00:00
Arvid Norberg
c60ceacb71
switch over to use boost.atomic instead of home-built one
2014-08-01 07:32:54 +00:00
Arvid Norberg
7c9c25e359
cleaned up redundant bytes and failed bytes counters. moved some into the stats_counters
2014-07-29 05:59:00 +00:00
Arvid Norberg
118ba5e9c4
streaming fix
2014-07-26 17:48:24 +00:00
Arvid Norberg
af0bb0abd8
fix another integer overflow issue from switching to chrono
2014-07-25 09:03:56 +00:00
Arvid Norberg
79a2744fa8
fixed issue with queued resume data saving, and fixed regression in recent disk error check changes
2014-07-21 03:03:59 +00:00
Arvid Norberg
8552e75f21
merge error code fix from RC_1_0
2014-07-20 20:49:56 +00:00
Arvid Norberg
6bd58da567
handle EOF error on windows when checking
2014-07-20 09:27:02 +00:00
Arvid Norberg
cd456964ad
storage fixes
2014-07-20 08:59:02 +00:00
Arvid Norberg
d2fccd8ae7
merged resume data fix from RC_1_0
2014-07-15 03:23:43 +00:00
Arvid Norberg
65bb1d0006
pass all the arguments to peer connections as an argument pack
2014-07-14 04:32:41 +00:00
Arvid Norberg
01640e1682
separate stats counters from session_interface (this was the main use of m_ses in peer connections)
2014-07-13 04:56:53 +00:00
Arvid Norberg
ddc406f853
mark up a few more places to make the resume-data dirty
2014-07-12 22:03:29 +00:00
Arvid Norberg
c8e8eb6e15
some asserts in disk_io_thread. fix issue in torrent::initialize
2014-07-12 19:23:31 +00:00
Arvid Norberg
7351389ce8
land libtorrent_aio branch in trunk
2014-07-06 19:18:00 +00:00
Arvid Norberg
6ef1b98717
merged compiler warning fixes from RC_1_0
2014-07-05 14:10:25 +00:00
Arvid Norberg
6c6fe4dfe2
merged fixes of warnings from RC_1_0
2014-07-04 23:40:31 +00:00
Arvid Norberg
28fb774383
initialize pad files to priority 0 by default
2014-06-29 01:24:51 +00:00
Arvid Norberg
6043e14131
remove pch.hpp
2014-06-28 23:45:46 +00:00
Arvid Norberg
2b7bef0f7b
fix support for web servers not supporting keepalive
2014-06-15 18:02:59 +00:00
Arvid Norberg
6ed95d7f82
support storing save_path in resume data
2014-06-12 22:39:41 +00:00
Arvid Norberg
3f693255c8
merged lsd fix from RC_0_16
2014-06-11 16:30:34 +00:00
Arvid Norberg
6d07af3b57
merge bitfield issue fix from RC_0_16
2014-06-11 08:32:24 +00:00
Arvid Norberg
e291ab3290
minor streaming improvements
2014-06-08 21:15:34 +00:00
Arvid Norberg
647cda2934
merge streaming fix from libtorrent_aio
2014-06-06 15:27:44 +00:00
Arvid Norberg
2125efbbd8
merged streaming changes from libtorrent_aio into trunk
2014-06-06 01:26:18 +00:00
Arvid Norberg
64c09e7607
support for older boost versions
2014-05-25 00:13:17 +00:00
Arvid Norberg
ea77427e07
added clear_piece_deadlines() to remove all piece deadlines
2014-05-23 02:23:11 +00:00
Arvid Norberg
283b74ae55
downloaders only consider download threshold and seeds only consider upload thresholds, for determining whether a torrent is considered inactive or not
2014-05-18 23:42:10 +00:00
Arvid Norberg
a1e7d3229d
improve queuing logic of inactive torrents (dont_count_slow_torrents)
2014-05-18 22:17:51 +00:00
Arvid Norberg
b16dc66df2
using certificates from buffers instead of files is only available in boost 1.54 and later
2014-05-12 04:30:19 +00:00
Arvid Norberg
aef1335e76
add overload to set certificate by buffer, not just by path to a file
2014-05-10 21:53:50 +00:00
Arvid Norberg
e225259481
fix some msvc warnings
2014-05-10 03:23:05 +00:00
Arvid Norberg
474e77039f
removed set_ratio feature
2014-05-03 17:11:55 +00:00
Arvid Norberg
78565e95ce
fix darwin clang build
2014-05-02 07:15:47 +00:00
Arvid Norberg
f037704539
clean up peer-id in bt_peer_connection (for privacy mode) and reduce dependency on session
2014-04-22 23:37:21 +00:00
Arvid Norberg
3192e59a1a
improve piece_deadline/streaming
2014-04-22 04:21:14 +00:00
Arvid Norberg
b0996ef855
merged fix from RC_0_16
2014-04-16 07:12:30 +00:00
Arvid Norberg
9e94a73ddd
support web seeds in magnet links
2014-04-15 09:31:28 +00:00
Arvid Norberg
1afa9db689
merged proxy fix for adding .torrent file by URL from RC_0_16
2014-04-06 05:07:10 +00:00
Arvid Norberg
1c954451ff
seed mode fixes
2014-03-13 08:00:53 +00:00
Arvid Norberg
e041c06053
report progress as 1.0 and every byte downloaded when in seed mode
2014-03-11 21:26:01 +00:00
Arvid Norberg
3c47177bfe
merged changes from RC_0_16
2014-03-07 19:19:17 +00:00
Arvid Norberg
b889bc6dc6
minor logging improvement
2014-03-07 09:38:49 +00:00
Arvid Norberg
a0a41b6c5e
merged file priority fix from RC_0_16 and keep the disk thread's file priorities up to date
2014-02-28 10:19:29 +00:00
Arvid Norberg
a943fec777
update copyright
2014-02-23 19:12:25 +00:00
Arvid Norberg
a71fbc4f68
include reason in peer_blocked_alert
2014-02-07 17:35:56 +00:00
Arvid Norberg
57489489ab
fixed verbose logging format string issue
2014-01-26 09:17:59 +00:00
Arvid Norberg
f0d1e8636c
extend verbose logging to try to catch test_priority failure on windows
2014-01-26 04:45:49 +00:00
Arvid Norberg
ce2805a258
merged lt_tex fix from RC_0_16
2014-01-26 01:17:58 +00:00
Arvid Norberg
60af1aa451
update peer ranks when our external IP changes
2014-01-23 03:31:36 +00:00
Arvid Norberg
e0644ce8f5
invariant check macro fixes
2014-01-21 19:26:09 +00:00
Arvid Norberg
ca132efeb1
fix issue in torrent::bytes_left
2014-01-21 01:52:01 +00:00
Arvid Norberg
fec7407461
send implied_port in dht announce messages when uTP is enabled
2014-01-20 06:35:06 +00:00
Arvid Norberg
4ac670de5c
remove outdated todo comment
2014-01-20 05:41:24 +00:00
Arvid Norberg
dca3f3c1a8
improve SSL error reporting and fix torrent_info::ssl_cert() bug
2014-01-20 01:01:03 +00:00
Arvid Norberg
702b68ecc4
clean up assert related defines and debuf-only fields less error-prone. fix missing initialization in file_pool caused by mistake in defines under which the debug field was initialized
2014-01-19 19:45:50 +00:00
Arvid Norberg
f26df6cbfa
allow force_announce to only affect a single tracker
2014-01-02 02:16:31 +00:00
Arvid Norberg
31e6d54ad2
torrent_handle::torrent_file returns a const torrent_info pointer
2014-01-01 21:24:15 +00:00
Arvid Norberg
dc2243c17e
add moving_storage field to torrent_status
2014-01-01 02:04:26 +00:00
Arvid Norberg
4e6b1cfbfb
update copyright
2013-12-25 17:07:16 +00:00
Arvid Norberg
d0d92a207e
disable invariant check when TORRENT_DISABLE_INVARIANT_CHECKS is defined
2013-12-18 07:15:16 +00:00
Arvid Norberg
4f189e921d
mark some expensive parts of invariant checks as expensive and disabled by default. introduce undead_peers to destruct all peer_connections in the network thread. they hang around while waiting for all outstanding disk jobs to complete. make the asio-debugging output a bit prettier
2013-12-05 07:42:32 +00:00
Arvid Norberg
a05103154b
remove debug logging to print field offsets and struct sizes
2013-12-02 10:00:03 +00:00
Arvid Norberg
356332a93b
make comparison function strict weak ordering
2013-12-02 09:39:17 +00:00
Arvid Norberg
d9dca62f1e
fix verbose logging build
2013-11-29 22:53:17 +00:00
Arvid Norberg
fc2fc8dfb2
fix initialization order warnings. pack peer_connection and torrent
2013-11-26 07:47:48 +00:00
Arvid Norberg
311ef5d3a4
merged auto-manage fix from RC_0_16
2013-11-24 09:03:22 +00:00
Arvid Norberg
d64d12e50d
merge test_read_piece from RC_0_16
2013-11-24 01:32:51 +00:00
Arvid Norberg
4521b8c902
fix checking issue with most pieces set to priority 0
2013-11-10 08:00:53 +00:00
Arvid Norberg
6136776097
merged fix from RC_0_16
2013-11-09 06:51:11 +00:00
Arvid Norberg
236acfce27
merged completed-on fix from RC_0_16
2013-11-04 01:32:16 +00:00
Arvid Norberg
90e7a4c9e3
merged some rate limiter polish from libtorrent_aio
2013-11-02 03:26:53 +00:00
Arvid Norberg
146fee37e9
merged fix from RC_0_16
2013-10-27 23:56:45 +00:00
Arvid Norberg
aa4064316e
add info_hash to torrent_delete_failed_alert
2013-10-27 23:39:24 +00:00
Arvid Norberg
e8db4fe67a
make test_torrent cheaper
2013-10-20 08:06:18 +00:00
Arvid Norberg
6542795d0a
improved support for web seeds that don't support keep-alive
2013-10-20 02:40:43 +00:00
Arvid Norberg
fb60de086b
merge some cleanup and fixes from libtorrent_aio
2013-10-12 06:03:19 +00:00
Arvid Norberg
9d02b478a6
fix invalid read passed the allocation of peer_info in web_seed_entry
2013-10-04 04:20:50 +00:00
Arvid Norberg
2df72d276e
when evicting peers waiting to establish connection, evict the ones that have been trying for the longest first
2013-09-14 21:47:31 +00:00
Arvid Norberg
908e29957e
include error code in metadata failure alert
2013-09-14 10:09:30 +00:00
Arvid Norberg
f1f89123e8
don't count pad-files as partial download pieces in the piece picker. prioritize which immutable dht items to keep also based on distance from our ID. remove some todo comments that probably should not be done
2013-09-14 10:08:31 +00:00
Arvid Norberg
a780b8469d
abstract generic_category() to build on boost-1.42 and older. fix some include issues in tests
2013-09-09 07:06:12 +00:00
Arvid Norberg
f3684db153
added some documentation
2013-09-01 17:34:05 +00:00
Arvid Norberg
3afe6c23a0
merged tracker key patch from RC_0_16
2013-08-31 21:06:43 +00:00
Arvid Norberg
b6083fbc28
first steps towards supporting SSL over uTP. moved the TODO comment and made it describe the next step. Optimized session destruction in unit tests, hopefully shaving off a bit of test run-time (and now supports asio-debugging of unit tests)
2013-08-31 20:19:03 +00:00
Arvid Norberg
6a47271667
merge fix for deleting files from libtorrent_aio
2013-08-22 05:27:45 +00:00
Arvid Norberg
1afc0c6740
a bunch of fixes to make test_web_seeds a lot faster, and fail slightly fewer tests
2013-08-19 03:54:45 +00:00
Arvid Norberg
1b60710493
support extensions removing torrents in tick()
2013-08-15 06:10:41 +00:00
Arvid Norberg
3bd53f88ef
fix build with internal_file_entry being deprecated without deprecated functions
2013-08-12 07:30:57 +00:00
Arvid Norberg
49aba26f5c
merged shutdown fix from libtorrent_aio
2013-08-12 00:51:49 +00:00
Arvid Norberg
6abfce3970
move torrent_status documentation into the header
2013-08-07 06:37:51 +00:00
Arvid Norberg
beae6cece0
merged ssl fix from RC_0_16
2013-07-28 15:06:28 +00:00
Arvid Norberg
2599acf451
merged time critical pieces improvement from RC_0_16
2013-07-27 17:43:34 +00:00
Arvid Norberg
9c9135bfc4
don't use pointers to resume_data and file_priorities in add_torrent_params
2013-07-17 20:21:48 +00:00
Arvid Norberg
6bc908fd49
merged anonymous mode fix from RC_0_16
2013-06-12 07:57:13 +00:00
Arvid Norberg
a75a0581e3
improve error message for listen_failed_alert
2013-06-04 00:35:42 +00:00
Arvid Norberg
fb81f96626
merge runtime-checks instead of asserts fix from RC_0_16
2013-05-29 03:30:33 +00:00
Arvid Norberg
d96ddfad9a
merged fix from RC_0_16
2013-05-20 08:05:39 +00:00
Arvid Norberg
360c6a6e16
introduced a new alert torrent_update_alert, for when a torrent_handle changes info-hash
2013-05-17 03:19:23 +00:00
Arvid Norberg
982a14c2e9
extend move_storage functionality to have more flexible behavior
2013-05-09 02:50:16 +00:00
Arvid Norberg
07984fa5e0
back port uninitialized variable access fix from libtorrent_aio
2013-03-18 05:46:08 +00:00
Arvid Norberg
8d8d160b35
a bit more robust error messaging when deleting files in a torrent
2013-03-17 00:50:33 +00:00
Arvid Norberg
d52a1f8c0a
simplify logic for sending torrent_finished_alert and fix incorrect assert
2013-03-16 22:16:58 +00:00
Arvid Norberg
b07e7d8fe9
include name, save_path and torrent_file in torrent_status, for improved performance
2013-03-02 23:17:48 +00:00
Arvid Norberg
ba6770ccd8
more torrent parsing unit tests
2013-02-26 05:57:29 +00:00
Arvid Norberg
a0caa0f4b2
disable invariant_check functions when invariant checks are disabled
2013-02-25 04:13:46 +00:00
Arvid Norberg
6faec32ebc
don't send ipv4 and ipv6 to trackers
2013-02-24 01:00:20 +00:00
Arvid Norberg
8d9fa465d2
merge need_save_resume patch from RC_0_16
2013-02-20 08:10:31 +00:00
Arvid Norberg
86a2569728
separate anonymous mode and force-proxy mode, and tighten it up a bit
2013-02-19 06:48:53 +00:00
Arvid Norberg
b96b7067ba
merged time critical piece fix from RC_0_16
2013-02-17 04:07:30 +00:00
Arvid Norberg
e45c71dd30
merged sparse file fix from RC_0_16
2013-02-16 08:26:55 +00:00
Arvid Norberg
6adbd75db8
merged streaming fix from RC_0_16
2013-02-11 05:39:03 +00:00
Arvid Norberg
0951219ab6
simplify the accounting of active_download and active_finished torrents
2013-02-09 05:56:31 +00:00
Arvid Norberg
7607f20e2a
add per-tracker scrape information to announce_entry
2013-02-04 07:17:31 +00:00
Arvid Norberg
327626b830
merged name resolver fix from RC_0_16
2013-02-02 23:59:11 +00:00
Arvid Norberg
2aacf1cd66
report errors in read_piece_alert
2013-01-29 02:18:32 +00:00
Arvid Norberg
ac5743cfbe
respond with read_piece_alerts for time-critical pieces when checking as well
2013-01-28 07:42:51 +00:00
Arvid Norberg
ff81a258af
merged read_piece response for cancelled time-critical pieces, from RC_0_16
2013-01-28 07:27:44 +00:00
Arvid Norberg
42ee2869b1
merged file priority fix from RC_0_16
2013-01-28 04:57:35 +00:00
Arvid Norberg
5b3a075387
polish peer-ranking feature
2013-01-28 02:13:25 +00:00
Arvid Norberg
bca1d62bbe
merged close_redundant_connections fix from RC_0_16
2013-01-27 21:25:06 +00:00
Arvid Norberg
a35c32bc51
merged change from RC_0_16
2013-01-25 06:22:42 +00:00
Arvid Norberg
13f2ae1154
fix resume torrent issue
2013-01-22 02:12:18 +00:00
Arvid Norberg
2c3e4703fb
merged torrent_handle::status fix from RC_0_16
2013-01-21 16:01:48 +00:00
Arvid Norberg
1bfa04eabc
merged fix from RC_0_16
2013-01-21 10:16:34 +00:00
Arvid Norberg
652bf8323b
prioritize some more todo mark-ups
2013-01-21 01:40:59 +00:00
Arvid Norberg
f1b8582a95
add gen_todo.py script. include todo.html and mark up some todos in the code with priority
2013-01-20 23:21:53 +00:00
Arvid Norberg
d6279c86e3
fix dht announce prioritization
2013-01-20 19:54:54 +00:00
Arvid Norberg
aa9918a602
widen some fields in torrent
2013-01-20 08:36:34 +00:00
Arvid Norberg
8f682d2ff7
merged string encoding of error messages fix from RC_0_16
2013-01-19 06:39:32 +00:00
Arvid Norberg
c87d26635b
merged error handling fix from RC_0_16
2013-01-13 22:35:19 +00:00
Arvid Norberg
38d7e58177
merge checking fix from RC_0_16
2013-01-06 04:53:26 +00:00
Arvid Norberg
e45124fc22
back-port heavy weight refcount invariant checking from libtorrent_aio (disabled by default). and also backport piece-picker refcounting bug fix
2013-01-06 04:02:29 +00:00
Arvid Norberg
5afa8c88b9
fix issues introduced with connection ordering
2013-01-02 07:48:09 +00:00
Arvid Norberg
3d0e5484ee
fix build
2013-01-01 19:15:41 +00:00
Arvid Norberg
ac5a9e9882
introduce global connection priority for improved swarm performance
2012-12-31 06:54:54 +00:00
Arvid Norberg
e2d14078ec
make files deleted alert non-discardable
2012-12-23 07:01:50 +00:00
Arvid Norberg
65e02c23e8
improve support for loading torrents out of resume files
2012-11-08 02:07:10 +00:00
Arvid Norberg
5d21c6a1f4
merged fix from libtorrent_aio
2012-11-04 03:08:43 +00:00
Arvid Norberg
f3ec86169e
merged swarm startup optimization from libtorrent_aio
2012-11-03 03:50:12 +00:00
Arvid Norberg
0327c73263
merged fix RC_0_16
2012-11-02 04:34:17 +00:00
Arvid Norberg
16630f94d1
merged fixes from RC_0_16
2012-10-21 20:24:14 +00:00
Arvid Norberg
8ba970018c
make bottled http requests response size limit configurable and bump default to 2 MiB
2012-10-19 01:28:47 +00:00
Arvid Norberg
6d7e9e4521
remove some iostream dependencies
2012-10-12 04:50:34 +00:00
Arvid Norberg
b81d1bfe08
merged web seed fix from RC_0_16
2012-10-06 17:51:59 +00:00
Arvid Norberg
f5972efe9f
merged finished alert asserts from libtorrent_aio
2012-10-06 17:50:06 +00:00
Arvid Norberg
83754b3427
merged post_torrent_updates assert from libtorrent_aio
2012-10-06 14:31:14 +00:00
Arvid Norberg
5bc322c031
merged get_torrent_info deprecation from libtorrent_aio, replaced by torrent_file()
2012-10-02 16:07:55 +00:00
Arvid Norberg
bff648a89e
update copyright dates and add tool to do so
2012-10-02 03:16:33 +00:00
Arvid Norberg
d181b2e057
merge pad_file_at optimization from libtorrent_aio
2012-09-30 20:55:12 +00:00
Arvid Norberg
c56901e864
improve web seed hash failure mode
2012-09-29 17:46:41 +00:00
Arvid Norberg
13bbb936ee
fix format string typo
2012-09-28 00:18:54 +00:00
Arvid Norberg
4ea4d32554
merge active_tracker_limit increase and logging polish from RC_0_16
2012-09-27 23:50:15 +00:00
Arvid Norberg
5e2ff1a246
merged logging cleanup from RC_0_16
2012-09-27 23:04:51 +00:00
Arvid Norberg
0ec16827ff
fix invariant check
2012-09-11 05:27:14 +00:00
Arvid Norberg
9951724f16
back-ported add_torrent_params extension from libtorrent_aio
2012-08-31 17:04:02 +00:00
Arvid Norberg
64a56e4581
merged fix from RC_0_16
2012-08-30 01:54:35 +00:00
Arvid Norberg
fdc25967c2
merged string function cleanup from RC_0_16
2012-08-26 15:26:17 +00:00
Arvid Norberg
2665d2a4e1
file_progress support for magnet links
2012-08-26 06:38:29 +00:00
Arvid Norberg
ceed83afde
fixed typo tying file_completed_alert to piece_finished_alert
2012-08-13 03:40:43 +00:00
Arvid Norberg
0685fb91bd
DHT throttling fix
2012-08-03 05:13:40 +00:00
Arvid Norberg
e7cc28e9df
fix SSL error messages
2012-08-01 15:01:13 +00:00
Arvid Norberg
a348eae42d
don't save excessive number of peers in the resume data
2012-07-04 21:33:04 +00:00
Arvid Norberg
3c0e7e0a4a
keep counters of the number of active downloading and finished torrents in order to have a cheap way of prioritizing peer connections for downloading torrents over finished ones
2012-06-21 03:51:39 +00:00
Arvid Norberg
e94963d085
fixed crash when providing corrupt resume data
2012-06-08 15:44:13 +00:00
Arvid Norberg
306b467b94
fix add torrent by url
2012-05-19 21:33:42 +00:00
Arvid Norberg
403c49ac29
factor out removing chunk headers from http streams and fix chunked encoding support when adding torrents by url
2012-05-16 05:32:12 +00:00
Arvid Norberg
5275e75fa5
back-port deletion of the redundant peer_connection constructor from libtorrent_aio
2012-05-14 05:43:45 +00:00
Arvid Norberg
402d6bb6b6
optimize torrent::status to scale better with the number of peers
2012-05-06 22:46:21 +00:00
Arvid Norberg
7f2f705b49
fixed piece sorting bug of deadline pieces
2012-05-05 19:46:02 +00:00
Arvid Norberg
56c05f9671
fix memory leak/bug in torrent::use_interface
2012-05-03 04:22:14 +00:00
Arvid Norberg
853fec3f07
fix to previous patch
2012-04-29 04:23:29 +00:00
Arvid Norberg
44995ee41d
one more UNC path fix
2012-04-29 04:20:02 +00:00
Arvid Norberg
1c60ae4064
canonicalize paths when using UNC paths
2012-04-28 21:13:55 +00:00
Arvid Norberg
6b40d5983b
initialize connections immediately when metadata is received
2012-04-26 16:38:36 +00:00
Arvid Norberg
2fc7f2191f
is_seed() is not a good indicator of whether or not we have a piece picker. use has_picker() instead
2012-04-25 19:16:22 +00:00
Arvid Norberg
49f74be42f
make super-seeding a bit more robust
2012-04-23 05:48:46 +00:00
Arvid Norberg
04eeb98bb3
fix for when critical pieces are completed via non-critical piece requests
2012-04-17 03:38:50 +00:00
Arvid Norberg
b491a76159
fix one more web seed issue caused by introducing a peer_info struct for web seeds
2012-04-14 06:32:35 +00:00
Arvid Norberg
48b85ba586
added more asserts in an attempt to track down invalid policy peer pointers in the piece picker. also fixed a web seed related crash when geoip support is enabled
2012-04-12 05:00:20 +00:00
Arvid Norberg
bd8a467ad9
merged web seed peer_info bugfixes from RC_0_16
2012-04-11 07:26:02 +00:00
Arvid Norberg
a5a9006014
merged fixes from RC_0_16 into trunk
2012-04-07 00:35:25 +00:00
Arvid Norberg
6acde24799
merged SSL fix from RC_0_16
2012-04-05 04:17:19 +00:00
Arvid Norberg
f7739a5699
only finalize files while downloading (not while checking)
2012-04-04 05:32:06 +00:00
Arvid Norberg
418c1e8190
make tracker back-off configurable
2012-03-29 03:51:22 +00:00
Arvid Norberg
d5ef64ddb2
don't restart the swarm after downloading metadata from magnet links
2012-03-27 00:24:09 +00:00
Arvid Norberg
6fcc469aef
support banning web seeds that send corrupt data
2012-03-24 01:29:31 +00:00
Arvid Norberg
341967dab7
improve magnet link support. in RSS feeds for instance. Parsing of magnet links was factored out and moved to the proper place, in session_impl::add_torrent
2012-03-08 09:54:44 +00:00
Arvid Norberg
57eb57ac78
move trust point and hashfailure counter logic to where they belong
2012-03-06 07:35:56 +00:00