Arvid Norberg
|
c4761e3922
|
proper seed mode fix
|
2011-04-28 07:32:42 +00:00 |
Arvid Norberg
|
1deeb98898
|
prefer purging peer entries that are not connectable
|
2011-04-25 00:13:30 +00:00 |
Arvid Norberg
|
2add9d193a
|
fix issue of adding duplicate incoming connections indefinitely to peer list when allow_multiple_connections_per_ip is enabled
|
2011-04-24 23:26:54 +00:00 |
Arvid Norberg
|
0b25b87593
|
add a bunch more stats logged to session stats
|
2011-03-17 05:31:06 +00:00 |
Arvid Norberg
|
0aff6803fb
|
fix to IP filter exemptions
|
2011-03-02 17:37:10 +00:00 |
Arvid Norberg
|
c15880be91
|
support having torrents that the IP filter doesn't apply to
|
2011-02-27 17:26:57 +00:00 |
Arvid Norberg
|
ab3b82b8ee
|
replaced std::rand() with custom random generator
|
2011-02-26 07:55:51 +00:00 |
Arvid Norberg
|
5f5ba94462
|
cleared some variables in constructors and got rid of an unnecessary constructor
|
2011-02-25 04:28:32 +00:00 |
Arvid Norberg
|
ca106ca4e0
|
some warning fixes and cleanup
|
2011-02-24 04:25:35 +00:00 |
Arvid Norberg
|
5412c62b1f
|
fix tracker URL decoding when adding magnet links
|
2011-02-23 16:47:18 +00:00 |
Arvid Norberg
|
141ada013f
|
fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way
|
2011-02-21 05:24:41 +00:00 |
Arvid Norberg
|
c4c1773ceb
|
fixed some warnings
|
2011-02-15 10:05:25 +00:00 |
Arvid Norberg
|
a42d42fd11
|
CPU optimization for end-game piece picker
|
2011-02-09 02:56:00 +00:00 |
Arvid Norberg
|
e079907252
|
more end-game piece picker optimization (early exit)
|
2011-02-08 04:08:04 +00:00 |
Arvid Norberg
|
5df4e7edd9
|
added more piece picker stats
|
2011-02-07 00:51:20 +00:00 |
Arvid Norberg
|
3d616f894e
|
end-game mode optimizations
|
2011-02-06 23:40:21 +00:00 |
Arvid Norberg
|
ea0af55a46
|
log end-game mode stats with stats logging
|
2011-02-06 03:07:00 +00:00 |
Arvid Norberg
|
f87b0b4617
|
only apply privileged port filter to DHT-only peers
|
2011-01-08 09:04:31 +00:00 |
Arvid Norberg
|
c54ffcbb8d
|
fix invalid assert
|
2011-01-01 17:09:25 +00:00 |
Arvid Norberg
|
1bc50983dc
|
don't connect to privileged ports by default
|
2010-12-31 00:33:23 +00:00 |
Arvid Norberg
|
00efc31bf6
|
various smaller fixes
|
2010-12-30 03:46:11 +00:00 |
Arvid Norberg
|
31386d8396
|
comment out assert
|
2010-12-21 03:40:49 +00:00 |
Arvid Norberg
|
20d4279177
|
optimized piece picking to not cause busy loops in some end-game modes
|
2010-12-18 10:19:34 +00:00 |
Arvid Norberg
|
e5f980d80d
|
merged uTP branch into trunk (yay)
|
2010-11-29 01:33:05 +00:00 |
Arvid Norberg
|
4f24fe1e62
|
fixed bug when allow_multiple_connections_per_ip was enabled
|
2010-11-26 20:48:04 +00:00 |
Arvid Norberg
|
8737a339c8
|
refactored verbose peer logging to use format strings
|
2010-10-31 22:12:26 +00:00 |
Arvid Norberg
|
559c4bdf65
|
fixed some msvc warnings
|
2010-10-16 15:24:45 +00:00 |
Arvid Norberg
|
21cbd1fac4
|
deprecated setters for max connections, max half-open, upload and download rates and unchoke slots. These are now set through session_settings
|
2010-10-09 19:09:38 +00:00 |
Arvid Norberg
|
d0dab83104
|
potential fix for long standing invariant check failure
|
2010-10-02 21:01:11 +00:00 |
Arvid Norberg
|
67110ec0a3
|
vs2010 build fixes
|
2010-07-22 16:49:40 +00:00 |
Arvid Norberg
|
9baa280b52
|
added asserts to catch broken peer allocations and frees as well as disk buffer corruption
|
2010-07-18 19:28:22 +00:00 |
Arvid Norberg
|
21e2894a4d
|
added asserts to peer allocation management
|
2010-07-15 02:27:12 +00:00 |
Arvid Norberg
|
fb3049a0eb
|
fixed rare crash when purging the peer list
|
2010-06-28 01:30:59 +00:00 |
Arvid Norberg
|
c0635f0391
|
added some asserts to track down issue with peer counter in busy piece picker requests
|
2010-05-01 16:17:37 +00:00 |
Arvid Norberg
|
dce2edb6cc
|
fixed vs 2010 build
|
2010-04-30 19:08:16 +00:00 |
Arvid Norberg
|
5247db7f90
|
fixed rare bug where we might erase an entry from the policy peer list when we shouldn't
|
2010-03-08 08:03:53 +00:00 |
Arvid Norberg
|
29880b7e26
|
use a stricted condition when to enter end-game mode. Made it configurable in RC_0_15+
|
2010-02-18 19:25:15 +00:00 |
Arvid Norberg
|
f31e670fc2
|
made end-game mode less aggressive
|
2010-02-18 17:26:21 +00:00 |
Arvid Norberg
|
c050b22d8f
|
optimized memory usage for torrent objects
|
2010-02-14 01:39:55 +00:00 |
Arvid Norberg
|
c8d3634a07
|
fix member order
|
2010-02-12 02:50:23 +00:00 |
Arvid Norberg
|
af5c7e3d04
|
fixed assert that could trigger by web seeds
|
2010-01-18 22:20:42 +00:00 |
Arvid Norberg
|
ef41d38c34
|
added support for storing per-peer rate limits across reconnects
|
2010-01-15 03:06:05 +00:00 |
Arvid Norberg
|
cdf459dad5
|
only keep one outstanding duplicate request per peer
|
2009-12-25 16:52:57 +00:00 |
Arvid Norberg
|
1f5859d31f
|
error_code fix. added is_error_code_enum template specialization and using the abbreviated syntax to build error_codes
|
2009-11-29 07:06:38 +00:00 |
Arvid Norberg
|
8dd244581d
|
header optimizations
|
2009-11-26 05:45:43 +00:00 |
Arvid Norberg
|
6343fe6a6d
|
optimized header dependencies to lower build time
|
2009-11-23 08:38:50 +00:00 |
Arvid Norberg
|
e43340c961
|
made it possible to build without RTTI
|
2009-11-02 20:43:38 +00:00 |
Arvid Norberg
|
b97dcc8c58
|
fixed race conditon when receiving metadata from swarm
|
2009-10-31 18:39:46 +00:00 |
Arvid Norberg
|
6c71a3797f
|
USE_I2P fix
|
2009-10-19 02:53:36 +00:00 |
Arvid Norberg
|
cdc30f1dd1
|
fixed bug where pieces may have been requested before the metadata was received
|
2009-10-05 00:10:35 +00:00 |
Arvid Norberg
|
3e9725b5d7
|
made peer_blocked_alert derive from torrent_alert
|
2009-09-07 01:47:30 +00:00 |
Arvid Norberg
|
dac25997f9
|
trunk build fix when GeoIP is enabled
|
2009-08-21 21:28:28 +00:00 |
Arvid Norberg
|
45fd696bc6
|
added I2P support
|
2009-08-20 03:19:12 +00:00 |
Arvid Norberg
|
78a6df0b2a
|
connect candidate fix
|
2009-08-01 22:48:43 +00:00 |
Arvid Norberg
|
dfe2af0311
|
added asserts
|
2009-08-01 21:16:11 +00:00 |
Arvid Norberg
|
8f1f0334c3
|
added some comments
|
2009-07-27 23:34:50 +00:00 |
Arvid Norberg
|
137d2d63f5
|
cleaned up policy. Moved logic from policy to torrent
|
2009-07-23 04:38:52 +00:00 |
Arvid Norberg
|
356db54dce
|
connect candidate counter fix
|
2009-06-26 05:58:24 +00:00 |
Arvid Norberg
|
f09774607f
|
added upload mode
|
2009-06-18 22:32:55 +00:00 |
Arvid Norberg
|
6b048dc85e
|
fixed bug in connect candidate counter
|
2009-06-18 16:16:41 +00:00 |
Arvid Norberg
|
2da772210c
|
fix to make torrent_status::list_peers more accurate
|
2009-06-13 04:14:41 +00:00 |
Arvid Norberg
|
07bcb3545a
|
converted a whole lot of error strings into error_codes. Documented some previously undocumented alerts as well as all the error codes
|
2009-06-12 16:40:38 +00:00 |
Arvid Norberg
|
d263526246
|
make incoming connections considered connectable when they tell us their listen port
|
2009-06-09 16:33:10 +00:00 |
Arvid Norberg
|
efb6ec5824
|
fixed expensive-invariant-checks build
|
2009-05-25 17:23:03 +00:00 |
Daniel Wallin
|
757b0437e9
|
Don't construct a temporary peer just for searching. Clean up some duplicate code.
|
2009-05-25 10:15:35 +00:00 |
Daniel Wallin
|
68629eb6bc
|
Split peer list into IPv4 and IPv6 peers. Saves 12 bytes per IPv4 peer.
|
2009-05-24 21:49:19 +00:00 |
Arvid Norberg
|
536d1e2cf6
|
removed assert in policy
|
2009-05-16 02:38:53 +00:00 |
Arvid Norberg
|
5bce212126
|
fixed incoming peer source flag and exposed it in client_test
|
2009-05-15 23:22:11 +00:00 |
Arvid Norberg
|
a51dfa50f5
|
renamed peer_from_tracker to add_peer
|
2009-05-15 22:07:19 +00:00 |
Arvid Norberg
|
b7c5d2f12d
|
add a separate setting for max peer list size for paused torrents
|
2009-05-13 01:34:10 +00:00 |
Arvid Norberg
|
46c286eea3
|
assert fixes
|
2009-05-12 18:24:16 +00:00 |
Arvid Norberg
|
136f101449
|
when reaching peer list size limit, rank peers to be removed. Fix for updating IP filter
|
2009-05-11 20:23:47 +00:00 |
Arvid Norberg
|
1eb2799a03
|
added more allocation logging for statistics builds. Identified and fixed some memory waste
|
2009-05-07 20:30:20 +00:00 |
Arvid Norberg
|
a961e253ef
|
fix logging build
|
2009-05-07 16:30:14 +00:00 |
Arvid Norberg
|
c8176cca55
|
optimized peer storage in resume data an in memory. Should use far less memory than previously for the peer list. Introduced peer source affinity, to avoid problem with a peer list that's diluted with stale peers
|
2009-05-06 22:36:24 +00:00 |
Arvid Norberg
|
ea91a6e077
|
fixed inverted peer connect rank. Used to connect to the least likely to work peer, instead of the most likely
|
2009-05-06 22:31:17 +00:00 |
Arvid Norberg
|
ff3db926fb
|
allocates 10 disk buffers at a time instead of 32. Fixed bug where connection candidates would be too high
|
2009-05-06 07:06:26 +00:00 |
Arvid Norberg
|
7563ba87b5
|
added comments to #endifs
|
2009-05-03 06:57:58 +00:00 |
Arvid Norberg
|
c71100950b
|
fix to recalculate_connect_candidates
|
2009-05-03 06:57:04 +00:00 |
Arvid Norberg
|
7439ca3277
|
add an invariant check for num_connect_candidate in policy
|
2009-05-03 03:41:33 +00:00 |
Arvid Norberg
|
3cf34e3a91
|
greatly optimised memory usage for peer list
|
2009-04-30 05:49:46 +00:00 |
Arvid Norberg
|
aba5b2e9d0
|
dropped some iostream dependencies
|
2009-04-04 09:52:25 +00:00 |
Arvid Norberg
|
1a6d2f86b9
|
add compile time option to disable IPv6 support
|
2009-03-31 07:45:54 +00:00 |
Arvid Norberg
|
31054ef069
|
first implementation of set_piece_deadline
|
2009-03-17 09:34:44 +00:00 |
Arvid Norberg
|
0de21dc815
|
fixed bug related to ignoring upload slots and made the piece rejection code more robust to handle similar bugs better
|
2009-03-12 17:06:41 +00:00 |
Arvid Norberg
|
2623037482
|
local peers are excempt from unchoke slots. #469
|
2009-01-28 06:14:21 +00:00 |
Arvid Norberg
|
952ed687cd
|
made session stats config build
|
2008-12-26 07:00:21 +00:00 |
Arvid Norberg
|
09b3a865ef
|
fixed compiler flags in pkg-config file and made header files not depend on the NDEBUG define
|
2008-11-29 21:33:21 +00:00 |
Arvid Norberg
|
3412c0f709
|
added option to set peers in a state where it doesn't download
|
2008-11-06 08:34:56 +00:00 |
Arvid Norberg
|
392dbb71da
|
more fixes to avoid unwanted exceptions
|
2008-10-23 04:10:23 +00:00 |
Arvid Norberg
|
8995edead0
|
policy iterator fix
|
2008-10-17 07:32:46 +00:00 |
Arvid Norberg
|
ad4d80cc6b
|
removed commented out code
|
2008-10-15 02:21:41 +00:00 |
Arvid Norberg
|
00415608f6
|
added assert in policy
|
2008-09-25 18:35:28 +00:00 |
Arvid Norberg
|
41808f8742
|
big change to improve piece picker. Better end-game mode. More options on which pieces to pick.
|
2008-09-06 21:04:57 +00:00 |
Arvid Norberg
|
92ed7fb364
|
fixed metadata extension issues
|
2008-08-29 17:21:56 +00:00 |
Arvid Norberg
|
72b99059e7
|
optimized policy::peer
|
2008-07-14 11:15:35 +00:00 |
Arvid Norberg
|
c5af2c2eaf
|
moved tracker announces into a timer instead of polling every second. Added state to properly send complete, started and stopped events
|
2008-07-12 08:25:19 +00:00 |
Arvid Norberg
|
63d4e0d4a3
|
invariant check fix
|
2008-07-08 21:33:36 +00:00 |
Arvid Norberg
|
f7042ca84a
|
improved piece timeout and peer snubbing logic
|
2008-07-07 12:04:06 +00:00 |
Arvid Norberg
|
e576babbb8
|
changed the alerts to have categories and to be filtered with a bitmask instead of having a severity and be filtered by a severity level.
|
2008-07-06 12:22:56 +00:00 |