Arvid Norberg
|
6737374c59
|
add aserts to make_time_critical()
|
2012-05-12 21:22:06 +00:00 |
Arvid Norberg
|
32cd6e10b9
|
SIOCGIFCONF fix
|
2012-05-12 16:15:36 +00:00 |
Arvid Norberg
|
e74fc839e9
|
fixed time critical piece accounting in the request queue
|
2012-05-12 07:14:07 +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
|
94ae0e433b
|
fixed semantics of rate_limit_utp to also ignore per-torrent limits
|
2012-05-06 07:09:49 +00:00 |
Arvid Norberg
|
0d7e3cb8c7
|
uTP timeout fix
|
2012-05-05 23:54:41 +00:00 |
Arvid Norberg
|
7f2f705b49
|
fixed piece sorting bug of deadline pieces
|
2012-05-05 19:46:02 +00:00 |
Arvid Norberg
|
2c2bd49a4e
|
fix build with disk stats enabled
|
2012-05-05 19:36:04 +00:00 |
Arvid Norberg
|
ca6bb805b4
|
fix possible integer overflow in dht
|
2012-05-05 18:52:16 +00:00 |
Arvid Norberg
|
d88614387f
|
fix possible crash
|
2012-05-04 04:48:06 +00:00 |
Arvid Norberg
|
56c05f9671
|
fix memory leak/bug in torrent::use_interface
|
2012-05-03 04:22:14 +00:00 |
Arvid Norberg
|
f49d79b1f1
|
remove unused variable
|
2012-05-03 03:22:19 +00:00 |
Arvid Norberg
|
bc34b13366
|
use random instead of rand()
|
2012-05-03 03:16:31 +00:00 |
Arvid Norberg
|
3a2916b578
|
initialize uninitialized members
|
2012-05-03 02:05:34 +00:00 |
Arvid Norberg
|
86b4c78871
|
fix unsigned comparison warnings
|
2012-05-03 01:51:56 +00:00 |
Arvid Norberg
|
ada35c021a
|
improved multiple bitfield and have_all/have_none unit test and fixed peer_connection accordingly
|
2012-05-02 18:03:12 +00:00 |
Arvid Norberg
|
bf3751640a
|
fix multiple bitfields issue
|
2012-05-02 01:08:25 +00:00 |
Arvid Norberg
|
9a3d77b400
|
delete duplicate code and fix metadata issue where piece refcounts would be counted up twice
|
2012-04-30 21:08:43 +00:00 |
Arvid Norberg
|
2da535c556
|
assert peers are not initialized twice
|
2012-04-30 20:15:11 +00:00 |
Arvid Norberg
|
cec9a16cc1
|
back-ported observer for set_external_ip for DHT
|
2012-04-30 06:30:35 +00:00 |
Arvid Norberg
|
918dce1341
|
back-ported part of the alert_dispatcher patch for the DHT
|
2012-04-30 05:39:35 +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
|
e73e96b04c
|
fix build
|
2012-04-28 21:27:29 +00:00 |
Arvid Norberg
|
1c60ae4064
|
canonicalize paths when using UNC paths
|
2012-04-28 21:13:55 +00:00 |
Arvid Norberg
|
c80e156120
|
expose print_backtrace in debug builds for the tests
|
2012-04-28 21:10:15 +00:00 |
Arvid Norberg
|
5583ed407a
|
fix some overflow and division by zero issues
|
2012-04-28 05:05:39 +00:00 |
Arvid Norberg
|
2016251b4f
|
replace is_seed() with has_picker()
|
2012-04-27 04:36:12 +00:00 |
Arvid Norberg
|
6b40d5983b
|
initialize connections immediately when metadata is received
|
2012-04-26 16:38:36 +00:00 |
Arvid Norberg
|
66ed31dd4b
|
send redundant have messages, otherwise super seeding breaks (broke test_swarm)
|
2012-04-26 16:37:45 +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
|
4ae349f61f
|
make sure we don't download pieces while the torrent is checking
|
2012-04-24 18:43:56 +00:00 |
Arvid Norberg
|
49f74be42f
|
make super-seeding a bit more robust
|
2012-04-23 05:48:46 +00:00 |
Arvid Norberg
|
ecb9b2b725
|
fixed possible crash when enabling multiple connections per IP
|
2012-04-21 03:49:27 +00:00 |
Arvid Norberg
|
a699ab3768
|
fix release asserts issue
|
2012-04-20 17:03:00 +00:00 |
Arvid Norberg
|
d2e91594b3
|
fixed typo breaking the build on vista+, in file pool's IO priority code
|
2012-04-18 03:52:34 +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
|
17747a0e15
|
change default of rate_limit_utp to true
|
2012-04-15 04:32:46 +00:00 |
Arvid Norberg
|
7f19e0d976
|
some more FreeBSD fixes
|
2012-04-15 02:20:23 +00:00 |
Arvid Norberg
|
ba4c77e7e5
|
merged FreeBSD fix from RC_0_16
|
2012-04-15 00:48:44 +00:00 |
Arvid Norberg
|
dafcf2c5ca
|
fixed web seed performance issue whith pieces > 1 MiB
|
2012-04-14 23:36:16 +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
|
4a2648d936
|
remove duplicate assert
|
2012-04-13 16:20:30 +00:00 |
Arvid Norberg
|
de07505464
|
more asserts in piece_picker to validate peer pointers
|
2012-04-12 17:10:22 +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
|
ccb1a880aa
|
fixed unchoke logic when using web seeds
|
2012-04-12 00:02:35 +00:00 |
Arvid Norberg
|
85497a0563
|
merged compatibility fix from RC_0_16
|
2012-04-11 17:39:13 +00:00 |
Arvid Norberg
|
646f761c32
|
merged compatibility patch from RC_0_16
|
2012-04-11 16:35:16 +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
|
7667925a30
|
merged makefile fix from RC_0_16
|
2012-04-11 05:09:25 +00:00 |
Arvid Norberg
|
9f0e892228
|
merged ban_web_seed setting patch from RC_0_16
|
2012-04-11 03:25:09 +00:00 |
Arvid Norberg
|
bd046bbf4a
|
merged change from RC_0_16
|
2012-04-11 02:58:32 +00:00 |
Arvid Norberg
|
333458f59d
|
fix invalid assert in policy and fix minor cleanup issue
|
2012-04-10 05:28:48 +00:00 |
Arvid Norberg
|
816e56cc01
|
fix the previous fix
|
2012-04-09 03:10:48 +00:00 |
Arvid Norberg
|
8e93d59b2c
|
fix bug when weeding out peers from peerlists
|
2012-04-09 03:04:57 +00:00 |
Arvid Norberg
|
548bace889
|
merged changes from RC_0_16
|
2012-04-08 16:03:39 +00:00 |
Arvid Norberg
|
a5a9006014
|
merged fixes from RC_0_16 into trunk
|
2012-04-07 00:35:25 +00:00 |
Arvid Norberg
|
f714732eee
|
merged fix from RC_0_16 to support older openssl
|
2012-04-06 04:11:04 +00:00 |
Arvid Norberg
|
9024209d51
|
merged set_settings race condition fix into trunk
|
2012-04-06 03:02:50 +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
|
75f110f48e
|
fix potential overflow issue in rate_limited_udp_socket (only if the computer locks up for a long time or you're debugging)
|
2012-04-04 04:24:29 +00:00 |
Arvid Norberg
|
8135a6e3a2
|
fix piece_picker::max_pieces. it's still restricted by piece_block
|
2012-04-04 04:23:28 +00:00 |
Arvid Norberg
|
46683f59f8
|
fix division by zero
|
2012-04-02 05:30:15 +00:00 |
Arvid Norberg
|
6fc580e0cb
|
support torrents with more than 262000 pieces
|
2012-04-01 19:14:30 +00:00 |
Arvid Norberg
|
b29b2314b2
|
improved shutdown delay debugging
|
2012-04-01 00:42:31 +00:00 |
Arvid Norberg
|
db65ec2fd3
|
fix shutdown delay issue
|
2012-04-01 00:42:04 +00:00 |
Arvid Norberg
|
c50e8fa628
|
fix bug
|
2012-03-31 07:21:58 +00:00 |
Arvid Norberg
|
697fa4911b
|
add asserts for peers to be destructed in the network thread
|
2012-03-30 04:29:54 +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
|
a2cb2c9bca
|
make the file_storage interface a bit more sane, and fixed typos in make_torrent documentation
|
2012-03-26 16:07:55 +00:00 |
Arvid Norberg
|
289921e276
|
log hash of data on incoming pieces
|
2012-03-26 15:24:14 +00:00 |
Arvid Norberg
|
8549840d5a
|
add debug option to log hash failures
|
2012-03-26 03:57:15 +00:00 |
Arvid Norberg
|
c8f7b79e2b
|
fix uTP bug
|
2012-03-24 16:08:49 +00:00 |
Arvid Norberg
|
4d60adcaa9
|
retry failed trackers a little bit sooner. make the exponential back-off not quite grow as fast
|
2012-03-24 15:15:36 +00:00 |
Arvid Norberg
|
6fcc469aef
|
support banning web seeds that send corrupt data
|
2012-03-24 01:29:31 +00:00 |
Arvid Norberg
|
bad2857cbe
|
fix symbol export error on windows
|
2012-03-23 08:22:52 +00:00 |
Arvid Norberg
|
00aa80a5fd
|
fix issue in web_peer_connection when the combined header size + chunk headers exceeds 1 kB
|
2012-03-23 04:35:35 +00:00 |
Arvid Norberg
|
5fa416255f
|
fixed typo in utf8.cpp
|
2012-03-22 15:51:56 +00:00 |
Arvid Norberg
|
bc851d317f
|
work on test_web_seed
|
2012-03-22 01:48:17 +00:00 |
Arvid Norberg
|
68cefe7d89
|
fixed bug in magnet link parser, and improved unit test
|
2012-03-21 16:27:50 +00:00 |
Arvid Norberg
|
cafbf2ca1d
|
more work on minimizing shared object export symbol table
|
2012-03-20 03:53:07 +00:00 |
Arvid Norberg
|
619c375528
|
don't inline large functions
|
2012-03-19 06:06:52 +00:00 |
Arvid Norberg
|
62fef3cba0
|
fixed build configuration test in session.cpp
|
2012-03-19 02:43:06 +00:00 |
Arvid Norberg
|
f4d0d90f20
|
fixed typo
|
2012-03-19 00:30:02 +00:00 |
Arvid Norberg
|
a2521bd23c
|
fix a bunch of issues to properly support dynamic linking of libtorrent with visibility=hidden. Still requires a small patch to boost
|
2012-03-18 23:31:04 +00:00 |
Arvid Norberg
|
8213814102
|
DHT fix
|
2012-03-17 19:27:57 +00:00 |
Arvid Norberg
|
af09935b87
|
some windows path fixes
|
2012-03-17 19:06:11 +00:00 |
Arvid Norberg
|
8a4685e83b
|
fixed some typos
|
2012-03-17 17:48:22 +00:00 |
Arvid Norberg
|
2ec6a53c71
|
fix openssl build
|
2012-03-16 07:45:27 +00:00 |
Arvid Norberg
|
7b1a441aeb
|
attempt to make shared library builds to work with visibility=hidden
|
2012-03-15 06:08:08 +00:00 |
Arvid Norberg
|
250f1645b3
|
fix windows directory separator issue on windows with UNC paths
|
2012-03-13 04:50:12 +00:00 |
Arvid Norberg
|
fc4f4a9753
|
fix non-unc build
|
2012-03-13 04:44:40 +00:00 |
Arvid Norberg
|
df2e891a2d
|
set uTP target delay to 100 ms. expose setting for packet loss multiplier for cwnd
|
2012-03-11 05:46:15 +00:00 |
Arvid Norberg
|
d8b221c795
|
improve session stats logging and parsing
|
2012-03-11 05:35:29 +00:00 |
Arvid Norberg
|
671694959f
|
log peers that have a full send buffer
|
2012-03-09 17:03:10 +00:00 |
Arvid Norberg
|
3442534085
|
fixed no-deprecate build
|
2012-03-09 06:34:23 +00:00 |
Arvid Norberg
|
b58a96d76b
|
log stats of incoming piece requests
|
2012-03-09 06:24:01 +00:00 |
Arvid Norberg
|
e08718428e
|
revert mistake
|
2012-03-09 02:18:46 +00:00 |
Arvid Norberg
|
9288f08826
|
fix stats logging precision
|
2012-03-09 01:22:45 +00:00 |
Arvid Norberg
|
ce3405c0ce
|
don't prevent sending bytes just because the peer was waiting on the disk
|
2012-03-09 01:19:30 +00:00 |
Arvid Norberg
|
97b4012685
|
and actually fix it
|
2012-03-09 00:23:08 +00:00 |
Arvid Norberg
|
f49c6d2d52
|
fix non UNC paths build
|
2012-03-09 00:14:30 +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
|
9bd40e950b
|
add send_buffer_low_watermark in an attempt to improve seed ramp-up time
|
2012-03-07 02:59:50 +00:00 |
Arvid Norberg
|
02b0e0ead3
|
add some more stats logging
|
2012-03-06 10:34:18 +00:00 |
Arvid Norberg
|
57eb57ac78
|
move trust point and hashfailure counter logic to where they belong
|
2012-03-06 07:35:56 +00:00 |
Arvid Norberg
|
5897235f51
|
fix recent simplification of connection attempt distribution
|
2012-03-06 07:34:02 +00:00 |
Arvid Norberg
|
ea59a9be22
|
simplify connection attempt distribution logic to not lower the connection rate with a downloading torrent among seeding ones
|
2012-03-05 10:42:25 +00:00 |
Arvid Norberg
|
8f3c3de1e2
|
add incoming requests to stats logging
|
2012-03-05 10:05:20 +00:00 |
Arvid Norberg
|
e2d46b5563
|
add performance warning when hitting the file descriptor limit. Log the total number of peers, including half-open TCP connections
|
2012-03-04 11:18:27 +00:00 |
Arvid Norberg
|
769c985e78
|
report ENOFILE to peer connection disconnect function when running out of file descriptors
|
2012-03-04 10:54:55 +00:00 |
Arvid Norberg
|
0d29dbbfbe
|
don't add the UNC path prefix to network paths
|
2012-03-04 10:54:10 +00:00 |
Arvid Norberg
|
92fba05040
|
attempt to fix unc paths on windows
|
2012-03-03 21:51:15 +00:00 |
Arvid Norberg
|
5a8037dba2
|
added performance alert for address-in-use errors
|
2012-03-03 02:29:37 +00:00 |
Arvid Norberg
|
ccf9c5a0fd
|
log more stats
|
2012-03-02 08:52:54 +00:00 |
Arvid Norberg
|
1bd4d1633c
|
added assert in torrent::state_updated() to make sure it's not called from the constructor
|
2012-03-01 23:18:32 +00:00 |
Arvid Norberg
|
8d754b9674
|
deprecate torrent_handle::super_seeding() and move it into torrent_status
|
2012-03-01 09:01:48 +00:00 |
Arvid Norberg
|
9cd5c6cc2f
|
don't require BOOST_ASIO_ENABLE_CANCELIO on non-windows platforms
|
2012-03-01 08:27:22 +00:00 |
Arvid Norberg
|
30d02f6b7a
|
fix potential integer overflows and a typo in boost_version conditional
|
2012-02-27 06:26:11 +00:00 |
Arvid Norberg
|
c168f9e1df
|
fixed assert
|
2012-02-26 01:36:29 +00:00 |
Arvid Norberg
|
fdc6d3722b
|
fix boost version condition for new asio ssl features
|
2012-02-26 00:01:53 +00:00 |
Arvid Norberg
|
886364118c
|
tweak connection points in deficit round-robin of outgoing connection attempts balancing between torrents
|
2012-02-25 10:57:36 +00:00 |
Arvid Norberg
|
a849d73602
|
add runtime check for size < 0 to file_storage::add_file
|
2012-02-25 10:49:50 +00:00 |
Arvid Norberg
|
b5bf19c07b
|
fix openssl build with boost-1.46
|
2012-02-25 08:31:25 +00:00 |
Arvid Norberg
|
3ef9190b01
|
fix export for settings_map symbol for python binding
|
2012-02-25 08:02:52 +00:00 |
Arvid Norberg
|
f221b3d931
|
export session_settings_map and fix rss issue in client_test
|
2012-02-24 16:11:31 +00:00 |
Arvid Norberg
|
ad779a569c
|
fix windows build
|
2012-02-23 09:13:18 +00:00 |
Arvid Norberg
|
14287b8a7b
|
use UNC paths on windows by default
|
2012-02-23 06:46:23 +00:00 |
Arvid Norberg
|
6c395cedee
|
fix build for boost < 1.47
|
2012-02-23 04:32:50 +00:00 |
Arvid Norberg
|
f1365a7a52
|
fail properly if NtSetFileInformation cannot be loaded
|
2012-02-22 09:29:07 +00:00 |
Arvid Norberg
|
28e74a79b7
|
RSS fixes (exponential back-off), handling feed errors with retries
|
2012-02-22 08:26:42 +00:00 |
Arvid Norberg
|
6627ae86d6
|
fixed integer overflow in file_storage::map_file
|
2012-02-21 07:43:25 +00:00 |
Arvid Norberg
|
e071bf113e
|
fixed connection_queue invariant check issue on shutdown
|
2012-02-21 06:47:48 +00:00 |
Arvid Norberg
|
bcf1d6eee8
|
fixed upload_mode assert
|
2012-02-21 06:46:36 +00:00 |
Arvid Norberg
|
5e4b8f785d
|
add missing state update calls when queue position changes
|
2012-02-21 05:59:38 +00:00 |
Arvid Norberg
|
8bb6635c94
|
improved rss unit test and fixed one incompatibility. added feature to save which feed items have been added, in order to not re-add them
|
2012-02-21 03:14:54 +00:00 |
Arvid Norberg
|
d24a2e30fc
|
rss feed fixes
|
2012-02-20 23:44:34 +00:00 |
Arvid Norberg
|
75fce84ce4
|
added unit test for RSS feeds and fixed a parsing bug
|
2012-02-20 07:51:36 +00:00 |
Arvid Norberg
|
079a8f8314
|
ignore failures when asking for local address of sockets and parsing a string into an IP address
|
2012-02-20 04:13:39 +00:00 |
Arvid Norberg
|
065d75b02d
|
fix bug in file storage unit test, and the bug causing mapped files to not be restored correctly from resume files
|
2012-02-19 19:00:52 +00:00 |
Arvid Norberg
|
92992c7eac
|
fix upnp snprintf issue
|
2012-02-18 20:35:06 +00:00 |
Arvid Norberg
|
5a23d04143
|
fix some clang warnings
|
2012-02-18 08:23:48 +00:00 |
Arvid Norberg
|
cde80acbde
|
fixed UDP socket error handling on windows
|
2012-02-17 18:23:47 +00:00 |
Arvid Norberg
|
d9db8e20f5
|
fix another pad file corner case
|
2012-02-17 07:19:54 +00:00 |
Arvid Norberg
|
1244ae8894
|
remove left-over debug printf from bdecoder
|
2012-02-17 06:52:08 +00:00 |
Arvid Norberg
|
b1c59f37c0
|
fix assert_fail export
|
2012-02-16 18:24:53 +00:00 |
Arvid Norberg
|
a9ee05bb25
|
export assert_fail
|
2012-02-16 10:38:43 +00:00 |
Arvid Norberg
|
d5f51f60ab
|
fix issue introduced with updated disconnect-redundant logic for metadata-only seeding
|
2012-02-16 10:06:21 +00:00 |