Jordan Lee
8aa0f36a37
cleanup of who calls the libtransmission thread locking functions.
...
In some cases we were calling them from deep inside libtransmission, when they should have been called directly from the public-visible API functions: tr_torrentWebSpeeds_KBps(), tr_torrentPeers(), tr_torrentTrackers().
2011-01-18 23:44:36 +00:00
Jordan Lee
7ce0cf2322
code cleanup for tr_peerMgrTorrentAvailability().
...
1. move responsibility for getting a thread lock back to the public API fucntion, tr_torrentAvailability().
2. if the torrent doesn't have metadata, stop after zeroing out the table
3. minor code formatting cleanup
2011-01-18 22:51:29 +00:00
Jordan Lee
7f01f0c3ee
#3911 : tr_peerMgrTorrentAvailability() doesn't sample across the entire torrent' -- fixed.
2011-01-18 22:21:09 +00:00
Jordan Lee
dd77485d83
(trunk libT) demote the remaining lazy-verify debug messages from the debug window to deep logging
2011-01-18 02:17:47 +00:00
Juliusz Chroboczek
5ac1cba6ed
Make ensureAtomExists add to the flags of an existing atom.
...
Flags are cumulative -- if we learn that a given peer groks encryption
from one source, and that it accepts incoming connections from another,
then the relevant atom should have both flags.
2011-01-16 15:51:48 +00:00
Juliusz Chroboczek
96141bdbff
Consolidate both versions of tr_isPex into a single function.
...
There used to be two versions of tr_isPex; one correct in peer-mgr.c,
and one buggy in resume.c. The buggy version caused us to reject all
peers with non-trivial flags when resuming.
2011-01-16 15:47:09 +00:00
Jordan Lee
6dc03f471e
(trunk libT) #3519 "webseeds don't work" -- fixed.
2011-01-06 01:00:21 +00:00
Charles Kerr
e5bb3205a1
(trunk) Join the 21st century and use only 1 space at the end sentences. This commit is nearly as important as the semi-annual ones that remove trailing spaces from the ends of lines of code... :)
2010-12-27 19:18:17 +00:00
Charles Kerr
ae84dc70dd
(trunk libT) #3836 "libevent2 support" -- finish moving to the libevent2 API mode. don't include the backwards-compatable API headers.
2010-12-24 08:58:41 +00:00
Mitchell Livingston
cf6866b7e8
follow the convention ftw
2010-12-23 02:39:03 +00:00
Mitchell Livingston
8c4f3549c7
#3595 Allow promotion of the "from" value in peer_atom (and still show where it was first discovered)
2010-12-23 02:35:21 +00:00
Charles Kerr
dc4880a477
(trunk libT) revert experimental patch r11527 from #3658
2010-12-20 12:44:16 +00:00
Charles Kerr
4ca695c090
(trunk libT) #3656 "endgame could be faster" -- revert the test code from r11528
2010-12-14 18:36:31 +00:00
Charles Kerr
f8355d654f
(trunk libT) #3242 "use added.f's 'connectable' flag" -- added.
2010-12-14 18:33:48 +00:00
Charles Kerr
79d4967ee6
(trunk libT) #3656 "endgame could be faster" -- another experimental patch, added to trunk for reality testing in the nightly builds.
2010-12-12 23:29:52 +00:00
Charles Kerr
492c4bbe0b
(trunk libT) #3658 "don't initiate new peer connections if our bandwidth is maxed out" -- added to trunk for nightly build users to kick around a bit. this is an experimental patch and I'm not sure how I feel about it.
2010-12-12 23:27:30 +00:00
Charles Kerr
43ed57b278
(trunk libT) #2955 "Lazy Verification (aka Just-in-Time Verification)" -- implemented.
2010-12-09 20:43:23 +00:00
Charles Kerr
aa79cbcbf2
(trunk libT) #3600 "Improve rechokeDownloads' peer limiter" -- fixed with patch from Longinus00
2010-12-04 17:17:44 +00:00
Charles Kerr
c064ef3c79
(trunk libT) #3682 "reduce memory footprint caused by tr_history" -- done. Patch by Longinus00
2010-11-16 15:17:34 +00:00
Charles Kerr
01ab067e9c
(trunk libT) #3662 "libtransmission cpu optimization: fewer calls to tr_time_msec()" -- fixed.
2010-10-24 01:08:08 +00:00
Charles Kerr
1f9e305e30
(trunk libT) #3596 "optimistic unchoke timer is too short" -- fixed.
2010-10-13 03:56:25 +00:00
Charles Kerr
6c3d651ffe
(trunk) #3618 "FreeBSD 8.1 & GCC 4.2.1 compiler warnings" -- fix some compiler warnings.
2010-10-11 21:44:46 +00:00
Charles Kerr
91cc3f4a2d
(trunk libT) #3329 "connection problems when downloading" -- apply Longinus00's fixSlowStart.diff
2010-10-01 18:16:01 +00:00
Daniel Lee
04aee3c49b
(libt) remove jump discontinuities in getMaxAtomCount
2010-09-25 00:38:49 +00:00
Daniel Lee
afc7c5355e
(libT) #3453:Torrent does not stop when set per torrent seed ratio is reached before torrent is completed
...
(libT) #3578:Interested flag isn't cleared when transitioning from leeching to seeding
2010-09-25 00:34:15 +00:00
Charles Kerr
bbd0391f01
(trunk libT) fix unchoke regression
2010-09-20 20:32:40 +00:00
Charles Kerr
9772cdb14d
(trunk libT) #3568 "don't optimistically unchoke torrents when our bandwidth is maxed out" -- fixed.
2010-09-19 01:04:49 +00:00
Charles Kerr
a105132d11
(trunk libT) #3475 "'"stop seeding when inactive' doesn't appear to work" -- experimental fix
2010-08-03 01:25:23 +00:00
Mitchell Livingston
fd0dd10419
First go at #2560 "inactive seeding time limit". libtransmission and Mac support are currently implemented.
2010-07-16 03:12:57 +00:00
Charles Kerr
6f5c9dcafb
(trunk libt) rename tr_date() as tr_time_msec() for clarity
2010-07-11 20:49:19 +00:00
Charles Kerr
d4816f7461
(trunk libT) remove some debugging printf()s that were accidentally committed in r10941
2010-07-05 22:49:07 +00:00
Charles Kerr
d088b289dd
(trunk libT) isPeerCandidate(): sort the filter tests in order of those that get the mosts hits
2010-07-04 20:40:34 +00:00
Charles Kerr
6e5af03d78
(trunk) #3045 "speed units" -- change the public API of libtransmission based on feedback from livings
2010-07-04 06:07:21 +00:00
Charles Kerr
cdcc4705aa
(trunk) #3045 "make libtransmission's API byte-oriented instead of KiB-oriented." -- implemented. This is a largish commit and will break the mac build for a little while.
2010-07-03 00:25:22 +00:00
Charles Kerr
e6d136f724
(trunk libT) #1521 "memory cache to reduce disk IO" -- improve one of the debugging messages
2010-07-01 16:26:30 +00:00
Charles Kerr
77c43d3f66
(trunk libT) add randomness to the peer unchoking algorithm
2010-06-27 01:24:48 +00:00
Charles Kerr
acd0e77901
(trunk libT) #3329 "connection problems when downloading" -- when deciding which peer to connect to, take download/seed status into account
2010-06-26 18:49:31 +00:00
Charles Kerr
e70ed9a2e8
(trunk libT) #3329 "connection problems when downloading" -- raise MAX_CONNECTIONS_PER_SECOND up the higher value used in 1.93
2010-06-26 17:54:19 +00:00
Charles Kerr
98cec85e46
(trunk libT) #3311 "MingW build of Transmission" -- apply further win32 diffs from rb07
2010-06-25 20:36:10 +00:00
Charles Kerr
7e239e932e
(trunk) #3320 : "If the seed ratio is already met when download completes, the Mac callback options do not occur" -- possible fix. needs confirmation from OP or BMW
2010-06-25 06:57:34 +00:00
Charles Kerr
16f1ebefce
(trunk libT) when comparing peer speed to decide which peers to unchoke, use different criteria for seeding, downloading public, and downloading private. Loosely related to #3334 .
2010-06-23 04:36:16 +00:00
Charles Kerr
7e9ba59807
(trunk libT) minor procedural tweak to tr_peerMgrPeerStats() inspired by #3334
2010-06-22 20:39:19 +00:00
Charles Kerr
610c912c5a
(trunk libT) #3329 "connection problems when downloading" -- randomize the peer arrays so that all untested peers will have an equal chance of being used. Suggested by Longinus00
2010-06-22 16:31:38 +00:00
Charles Kerr
db44d81b24
(trunk) #3256 "libtransmission/publish.[ch] should be replaced" -- apply publish.diff for 2.10
2010-06-19 14:33:10 +00:00
Charles Kerr
e70bebf930
(trunk) #1521 "memory cache to reduce disk IO" -- commit block-cache-rc1.diff to trunk for the nightlies.
2010-06-19 14:25:11 +00:00
Charles Kerr
a5e708c824
(trunk libT) rejigger the filter order again, based on profiling in cachegrind
2010-06-14 12:48:28 +00:00
Charles Kerr
38a254ba78
(trunk libT) as long as I'm committing these CPU tweaks, might as well throw in #3289 too. To undo all this, we can revert to r10745
2010-06-14 12:01:50 +00:00
Charles Kerr
89201ab829
(trunk libT) when filtering out peers that aren't candidates, use the fastest filter tests first, so that the more expensive tests will be applied to fewer peers. In particular, call peerIsInUse() last.
2010-06-14 11:57:46 +00:00
Charles Kerr
f0a70d77b6
(trunk libT) experimental commit
2010-06-14 03:42:54 +00:00
Charles Kerr
ec79257999
(trunk libT) add a much faster (but more complicated) implementation of comparePeerCandidates(). For testing in the nightlies, leave both and the new implementations in the code and run them both (which will make the nightlies slower for awhile) and crash if the results differ from each other. When it doesn't crash anymore I'll remove the old implementation. Happy testing! >:)
...
-place and compare them to make sure they both give the same results. If no testers can make it crash
2010-06-14 01:56:03 +00:00