Arvid Norberg
|
497f7a4a27
|
piece picker fix for random mode
|
2015-02-08 21:12:10 +00:00 |
Arvid Norberg
|
a8623a9b23
|
request partial pieces in rarest-first order
|
2015-02-08 18:01:29 +00:00 |
Arvid Norberg
|
512113510b
|
introduce another rule where we prioritize partial pieces in the piece picker to avoid having too many bytes outstanding in partial pieces (especially very large pieces)
|
2015-02-08 16:52:57 +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
|
04c33d6fb2
|
move closing of files outside of file pool mutex
|
2015-02-08 14:44:33 +00:00 |
Arvid Norberg
|
2a0789594d
|
fix linux build
|
2015-02-08 00:59:54 +00:00 |
Arvid Norberg
|
46ef448711
|
fix issue with upload only while trying to download metadata. also added a unit test to catch it in the future
|
2015-02-07 01:01:48 +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
|
fe10128d53
|
fix invalid memory access
|
2015-01-27 01:09:16 +00:00 |
Arvid Norberg
|
678d4f3a82
|
fix warning
|
2015-01-26 03:09:32 +00:00 |
Arvid Norberg
|
d92d53f27a
|
merged changes from RC_1_0
|
2015-01-26 02:07:03 +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
|
bc9281a27c
|
deprecate file_entry (used by file_storage) and clean up the add_file overload that borrows memory (and improve implementation and documentation). The python bindings were updated to more closely match the c++ API (specifically actually using file_storage)
|
2015-01-21 15:46:12 +00:00 |
Arvid Norberg
|
3286437a7d
|
extend peer_list unit test and fix some bugs
|
2015-01-20 23:56:45 +00:00 |
Arvid Norberg
|
d9e69db0cb
|
actually make use of the max_failcount setting
|
2015-01-20 06:26:22 +00:00 |
Arvid Norberg
|
d41d59d780
|
improve prefer-contiguous-blocks in piece_picker, to actually pick a contiguous range
|
2015-01-20 03:46:40 +00:00 |
Arvid Norberg
|
54eb499803
|
make post_torrent_updates more flexible by allowing to pass flags to it. The same flags as torrent_handle::status. Also make the default return accurante progress
|
2015-01-20 02:46:23 +00:00 |
Arvid Norberg
|
d8d069675c
|
improve piece picker to better support torrents with very large pieces and web seeds
|
2015-01-20 02:34:55 +00:00 |
Arvid Norberg
|
e6eb920021
|
piece picker cleanup
|
2015-01-19 22:07:53 +00:00 |
Arvid Norberg
|
431fa2ac55
|
fix python binding build (and expose the new dht stats alert)
|
2015-01-18 21:36:24 +00:00 |
Arvid Norberg
|
a7bec127f1
|
relying on local statics being threadsafe still does not seem safe on msvc
|
2015-01-18 16:52:39 +00:00 |
Arvid Norberg
|
609b5eb4ba
|
fix dht logging build
|
2015-01-18 15:03:18 +00:00 |
Arvid Norberg
|
8614ed795a
|
attempt to fix build
|
2015-01-18 04:40:01 +00:00 |
Arvid Norberg
|
de616b29c5
|
fix c++98 support
|
2015-01-18 02:06:18 +00:00 |
Arvid Norberg
|
0afea4bb3e
|
move some DHT verbose stats logging over to performance counters
|
2015-01-18 01:06:36 +00:00 |
Arvid Norberg
|
7441a0a3b3
|
fix build
|
2015-01-17 22:09:20 +00:00 |
Arvid Norberg
|
22a02f4a1f
|
make dht_tracker be held by shared_ptr instead of intrusive_ptr. remove redundant performance counter (total dht sent/received). report DHT IP overhead to the IP overhead counters
|
2015-01-17 22:06:30 +00:00 |
Arvid Norberg
|
58d93e5aa1
|
add new (non-deprecated) access to dht stats, asynchronously via an alert
|
2015-01-17 17:02:58 +00:00 |
Arvid Norberg
|
b9b657c3d4
|
post alerts instead of writing to a file, in local peer discovery, when logging is enabled
|
2015-01-16 23:01:14 +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
|
7668bf5d4c
|
downgrade some todo comments
|
2015-01-15 19:13:45 +00:00 |
Arvid Norberg
|
9bfbb8a52a
|
fix partfile on windows
|
2015-01-15 03:35:13 +00:00 |
Arvid Norberg
|
e2d73cfe38
|
file not found is not an error in exists()
|
2015-01-15 02:31:38 +00:00 |
Arvid Norberg
|
2943bd4d7d
|
make test_privacy more reliable
|
2015-01-14 01:59:23 +00:00 |
Arvid Norberg
|
223154b1f1
|
fix build
|
2015-01-13 22:40:16 +00:00 |
Arvid Norberg
|
d140d71e1a
|
extend logging of UDP tracker announces (to track down unit test flapping)
|
2015-01-13 21:34:43 +00:00 |
Arvid Norberg
|
9172874b5c
|
fix storage error (recently introduced) where the mapped_files object would not be updated when renaming files that did not exist on disk
|
2015-01-13 18:28:06 +00:00 |
Arvid Norberg
|
95f889b247
|
some debug output
|
2015-01-13 06:11:42 +00:00 |
Arvid Norberg
|
c9903bdaf2
|
use O_SYNC when available
|
2015-01-07 23:21:54 +00:00 |
Arvid Norberg
|
c9075a530d
|
fix build
|
2015-01-06 22:17:22 +00:00 |
Arvid Norberg
|
1a53a454ec
|
fix ssl unit test
|
2015-01-06 08:16:03 +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
|
a462f58372
|
use hardware optimized CRC32C function in DHT
|
2015-01-05 13:50:42 +00:00 |
Arvid Norberg
|
1b254e16c2
|
remove comment
|
2015-01-05 12:25:10 +00:00 |
Arvid Norberg
|
73a4755f13
|
fix asio-debugging bug in udp_socket
|
2015-01-05 12:22:31 +00:00 |
Arvid Norberg
|
3be0430036
|
merged changes from RC_1_0
|
2015-01-05 12:15:16 +00:00 |
Arvid Norberg
|
bb33b061e4
|
clean up session_impl
|
2015-01-04 22:26:26 +00:00 |
Arvid Norberg
|
35b41858cf
|
deprecated session_status and session::status() in favor of performance counters
|
2015-01-04 21:31:02 +00:00 |
Arvid Norberg
|
55e51ab57c
|
merged changes from RC_1_0
|
2015-01-04 21:18:00 +00:00 |
Arvid Norberg
|
68ffd3c47c
|
restore breakage of recalculate_automanaged_torrents, and fix the logic for checking torrents
|
2015-01-04 21:14:46 +00:00 |
Arvid Norberg
|
1218e328cd
|
SSL fixes (especially over uTP)
|
2015-01-04 01:04:56 +00:00 |
Arvid Norberg
|
d68471805e
|
improve support for HTTP where one direction of the socket is shut down
|
2015-01-03 22:38:17 +00:00 |
Arvid Norberg
|
f839b8c9b4
|
factor creating of directories into default_storage::open_file to make that functionality more robust and fix a bug where moving files out of the part-file would fail because the directories hadn't been created yet
|
2015-01-03 16:57:21 +00:00 |
Arvid Norberg
|
b897a6ce29
|
fix bug in settings_pack causing intermittent unit test failures. added unit test to cover the bug
|
2015-01-03 16:52:22 +00:00 |
Arvid Norberg
|
290260054d
|
fix http restart-piece bug whose fix apparently failed to merge from RC_1_0 a long time ago. Also improve logging of restart pieces
|
2015-01-03 13:09:09 +00:00 |
Arvid Norberg
|
9b0f7bbe72
|
move function from header to .cpp file
|
2015-01-02 00:51:09 +00:00 |
Arvid Norberg
|
dbf461ac23
|
make DHT dos mitigation parameters configurable via dht_settings
|
2015-01-01 23:24:21 +00:00 |
Arvid Norberg
|
f77e12ac04
|
clean up symbol exports
|
2015-01-01 20:25:39 +00:00 |
Arvid Norberg
|
a1c1f9393d
|
fix flush_pieces in disk_io_thread to also flush the read cache
|
2015-01-01 10:10:13 +00:00 |
Arvid Norberg
|
092362e9bc
|
remove internal fields from web_seed_entry
|
2014-12-31 22:05:34 +00:00 |
Arvid Norberg
|
764b09d6b5
|
make the peer fingerprint a regular setting and remove it from the main session constructor argument list
|
2014-12-31 15:51:45 +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
|
eefba55419
|
fix assert in utp_stream at high rates
|
2014-12-30 20:44:18 +00:00 |
Arvid Norberg
|
7d53b7efd3
|
fix merge error
|
2014-12-30 16:56:03 +00:00 |
Arvid Norberg
|
fcf6beace5
|
merged changes from RC_1_0
|
2014-12-30 09:02:20 +00:00 |
Arvid Norberg
|
e9414894e2
|
separate the configuration of crypto library and whether protocol encryption is enabled or not. make protocol encryption always use the built-in rc4 and tommath code. SHA-1 hashing is done by the crypto library
|
2014-12-29 16:50:22 +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
|
ca3c1620bd
|
merged changes from RC_1_0
|
2014-12-17 14:33:52 +00:00 |
Arvid Norberg
|
20b4608c38
|
optimize copying torrent_info and file_storage objects
|
2014-12-17 05:33:16 +00:00 |
Arvid Norberg
|
13a9c3c78d
|
we no longer support including file-hashes when creating torrents
|
2014-12-17 03:50:01 +00:00 |
Arvid Norberg
|
6214aef0c5
|
merged changes from RC_1_0
|
2014-12-17 03:19:42 +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
|
6f19f9a063
|
lt_trackers is no longer a default extension
|
2014-12-10 09:59:24 +00:00 |
Arvid Norberg
|
a3d1a493fd
|
disable logging alerts in client_test
|
2014-12-10 09:45:38 +00:00 |
Arvid Norberg
|
333a13c957
|
a bit more conservative block request timeouts. promote some invariant checks in the DHT as expensive (to disable them for regular debug builds)
|
2014-12-10 07:13:57 +00:00 |
Arvid Norberg
|
1ce3bdf0d0
|
update send and received byte performance counters immediately, to avoid the one second quantization in stats
|
2014-12-10 05:49:17 +00:00 |
Arvid Norberg
|
20b9a01a09
|
pack members of pending_buffer a bit
|
2014-12-10 01:05:40 +00:00 |
Arvid Norberg
|
5666cdcd07
|
fix warnings
|
2014-12-09 09:33:34 +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
|
4eaec6d87f
|
instead of using a fixed request timeout for every peer, have an adaptable one based on the average download time for a block
|
2014-12-08 17:06:04 +00:00 |
Arvid Norberg
|
c4e5df8e4d
|
remove the concept of timeout_extend in piece request timeouts. if a request times out, cancel it as soon as it holds up the completion of a piece
|
2014-12-07 22:22:38 +00:00 |
Arvid Norberg
|
790ef041bf
|
merged changes from RC_1_0
|
2014-12-07 07:22:39 +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
|
066cbf1a9f
|
merged changes from RC_1_0
|
2014-12-02 10:18:07 +00:00 |
Arvid Norberg
|
4376d26399
|
merged changes from RC_1_0
|
2014-12-01 10:43:34 +00:00 |
Arvid Norberg
|
362b54421d
|
merged changes from RC_1_0
|
2014-11-30 10:07:19 +00:00 |
Arvid Norberg
|
601f8c0476
|
merged changes from RC_1_0
|
2014-11-29 09:12:44 +00:00 |
Arvid Norberg
|
d30ae3dda8
|
fix stats_alert stats indices
|
2014-11-29 08:17:25 +00:00 |
Arvid Norberg
|
1c91903c9c
|
merged fixes from RC_1_0
|
2014-11-27 03:05:06 +00:00 |
Arvid Norberg
|
f73fe335e2
|
deprecated flag should not affect ABI
|
2014-11-26 10:17:44 +00:00 |
Arvid Norberg
|
edade10561
|
merged fix from RC_1_0
|
2014-11-26 03:58:55 +00:00 |
Arvid Norberg
|
8ec7cff993
|
merged changes from RC_1_0
|
2014-11-26 02:02:32 +00:00 |
Arvid Norberg
|
658e2ceefd
|
merged Steven Siloti's peer crypto patch into trunk
|
2014-11-23 06:14:47 +00:00 |
Arvid Norberg
|
179df62379
|
merged changes from RC_1_0
|
2014-11-20 05:53:12 +00:00 |
Arvid Norberg
|
edfa38cd30
|
merged changes from RC_1_0
|
2014-11-17 03:41:01 +00:00 |
Arvid Norberg
|
0b711f1280
|
remove unused variables. add some comments
|
2014-11-17 03:10:00 +00:00 |
Arvid Norberg
|
e1d0592a57
|
merged changes from RC_1_0
|
2014-11-14 09:35:39 +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
|
601f0dc434
|
merged changes from RC_1_0
|
2014-11-03 06:15:51 +00:00 |
Arvid Norberg
|
3742fd2699
|
merged changes from RC_1_0
|
2014-11-02 09:41:29 +00:00 |
Arvid Norberg
|
34af25beaa
|
merged chagnes from RC_1_0
|
2014-11-01 22:47:56 +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
|
1c448331d5
|
fix stats_alert with recent changes to stats
|
2014-10-25 23:10:07 +00:00 |
Arvid Norberg
|
935eea9d0b
|
some more fixes to cache_status
|
2014-10-25 21:28:57 +00:00 |
Arvid Norberg
|
83394f54f9
|
transition fenced job histogram to session stats gauges. deprecate it from cache_status
|
2014-10-25 20:59:54 +00:00 |
Arvid Norberg
|
0bcbe433ed
|
deprecate most of cache_status type (use session stats instead)
|
2014-10-25 20:07:50 +00:00 |
Arvid Norberg
|
9338aa6c60
|
some more refactoring in choker
|
2014-10-24 00:18:01 +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
|
e09a2b770d
|
factored out choke comparison functions into choker.cpp
|
2014-10-22 22:30:04 +00:00 |
Arvid Norberg
|
02a9ea18b7
|
deprecated auto_expand_choker. started factoring out choker logic into its own translation unit (preparing for making it unit testable)
|
2014-10-22 22:06:56 +00:00 |
Arvid Norberg
|
8d99b6eabb
|
fixed ssl typo
|
2014-10-21 23:53:18 +00:00 |
Arvid Norberg
|
ca6bb1ebd9
|
minor cleanup of open_listen_port internally
|
2014-10-21 22:08:48 +00:00 |
Arvid Norberg
|
3db32f67b5
|
remove option TORRENT_DISABLE_FULL_STATS
|
2014-10-21 21:45:35 +00:00 |
Arvid Norberg
|
ce9ff9885b
|
move DHT transfer counters to performance_counters
|
2014-10-21 21:36:45 +00:00 |
Arvid Norberg
|
7249122329
|
move tracker transfer counters over to use performance_counters internally as well
|
2014-10-21 21:24:15 +00:00 |
Arvid Norberg
|
bb3e399ce2
|
convert endpoint list into vector in udp_tracker_connection
|
2014-10-21 20:49:36 +00:00 |
Arvid Norberg
|
cea5585993
|
remove stats logging functionality from libtorrent. This has been moved to a helper class part of libtorrent-webui, utility library
|
2014-10-21 19:58:12 +00:00 |
Arvid Norberg
|
6aa0ae9f2e
|
fix tracker_manager argument forwarding
|
2014-10-21 04:22:10 +00:00 |
Arvid Norberg
|
14c9bd90d3
|
fix bug in setup_transfer (for unit tests). fix verbose logging build. make sure test_pex is reliable
|
2014-10-21 02:08:46 +00:00 |
Arvid Norberg
|
9b37efe6a8
|
first steps towards removing session_impl dependency from tracker connections, to improve their testability
|
2014-10-21 00:28:51 +00:00 |
Arvid Norberg
|
ffb66ec156
|
transition tracker_connections to use shared_ptr instead of intrusive_ptr. optimize udp tracker connection lookups by using unordered map instead of linear search.
|
2014-10-20 20:44:05 +00:00 |
Arvid Norberg
|
2f077d8efa
|
fix http_connection timeout issue
|
2014-10-16 05:33:09 +00:00 |
Arvid Norberg
|
d308dce99b
|
CMakeList.txt fix
|
2014-10-15 03:01:39 +00:00 |
Arvid Norberg
|
99cd0c7a08
|
merged changes from RC_1_0
|
2014-10-14 16:36:06 +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
|
ec472daee3
|
fix bug in peer_connection causing it to not connect when not having metadata
|
2014-10-12 06:29:34 +00:00 |
Arvid Norberg
|
a91848962a
|
merge changes from RC_1_0
|
2014-10-12 04:18:34 +00:00 |
Arvid Norberg
|
ab34239447
|
fix invalid comment
|
2014-10-10 00:16:17 +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
|
b55778a847
|
some DHT logging and parsing
|
2014-10-07 07:23:20 +00:00 |
Arvid Norberg
|
04760d8f0f
|
http_connection cleanup
|
2014-10-06 08:39:05 +00:00 |
Arvid Norberg
|
0cd2e74f28
|
remove invalid assert
|
2014-10-06 05:02:00 +00:00 |
Arvid Norberg
|
f1032586f7
|
http_connection fix
|
2014-10-06 03:19:29 +00:00 |
Arvid Norberg
|
9b8e7bc169
|
fix typo in ssl patch
|
2014-10-06 03:18:26 +00:00 |
Arvid Norberg
|
a655047cb0
|
support SSL over uTP (unit test is still failing with same errors as previously, this has not been fixed yet)
|
2014-10-06 03:03:01 +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
|
8af9e22938
|
remove invalid assert
|
2014-10-04 07:38:10 +00:00 |