Commit Graph

3184 Commits

Author SHA1 Message Date
Charles Kerr 37f90426c1 (trunk libT) revert r10661 s.t. DHT peers are preferred slightly over PEX peers. This reversion comes after reading "Understanding the Properties of the BitTorrent Overlay" (2007, Al-Hamra) @ http://arxiv.org/pdf/0707.1820 at Juliusz's suggestion. Also tweak the announce's 'numwant' threshold based on findings from the same paper. 2010-05-28 01:41:30 +00:00
Charles Kerr a1b85a633c (trunk libT) #3234 "Checking existing data can show 100%" -- fixed in trunk for 2.00 2010-05-26 16:40:47 +00:00
Charles Kerr b0b9e17032 (trunk libT) define MAX_BLOCK_SIZE once instead of in a handful of places 2010-05-26 15:23:21 +00:00
Charles Kerr 52d82cee33 (trunk libT) #3235 "Changeset 10293 broke the moving files fron complete to incomplete dir when both dirs have same inode on different devices" -- fixed in trunk for 2.00 2010-05-26 13:46:37 +00:00
Charles Kerr 035dea80df (trunk libT) fix r10689 oops 2010-05-25 20:42:32 +00:00
Charles Kerr 25a5b2918a (trunk libT) #3231 "Check existing data is extremely slow" -- increase the read buffer size as suggested by eridius 2010-05-25 20:19:34 +00:00
Charles Kerr f3a5eed32b (trunk libT) #3233 "torrent.c:1695: error: too few arguments to function `ctime_r'" on OpenSolaris 2010-05-25 15:23:16 +00:00
Charles Kerr 872291cd62 (trunk libT) make tr_pwrite()'s "buf" argument const 2010-05-22 00:09:36 +00:00
Charles Kerr 8433e0dd3b (trunk libT) make tr_peerIoEnable*() inline functions 2010-05-20 15:30:18 +00:00
Charles Kerr 40a9133ced (trunk libT) remove dead code 2010-05-20 14:05:27 +00:00
Charles Kerr 5ca8d41816 (trunk libT) #2929 "persistent tracker error messages in main window" -- experimental fix 2010-05-19 19:02:25 +00:00
Charles Kerr 8a83a4bf79 (trunk libT) remove dead function tr_torrentPromoteTracker() 2010-05-19 18:23:47 +00:00
Charles Kerr 7936f0d5d1 (trunk libT) clean up #includes for event.h and evutil.h 2010-05-19 16:17:51 +00:00
Charles Kerr fcda98c86f (trunk libT) promote PEX peers up the food chain a little bit 2010-05-19 15:53:09 +00:00
Charles Kerr fcc56ddcd5 (trunkn libT) #3192 "crash in most recent nightlies" -- fixed in trunk for 2.00 2010-05-18 15:14:54 +00:00
Charles Kerr 1aef6e1a03 (trunk libT) code tweak 2010-05-18 13:07:37 +00:00
Charles Kerr 8e85b1c6e5 (trunk libT) fdlimit.[ch] MIT -> GPL. There's not any MIT code left there. 2010-05-17 16:41:59 +00:00
Charles Kerr 1b44fecec9 (trunk libT) #1869 "new status for torrents that reached the seed ratio" -- use suggestion from Longinus00 to ensure torrents don't get flagged as finished if the user hits "download none" in the "add torrent" dialog 2010-05-15 22:26:25 +00:00
Charles Kerr f7d4377fa1 (trunk libT) minor API cleanup: constify array arguments in tr_torrentSetFilePriorities(), tr_torrentInitFileDLs(), and tr_torrentSetFileDLs() 2010-05-12 03:03:29 +00:00
Charles Kerr 6d9ac874d8 (trunk libT) #3204 "crash in tr_torrentGetMagnetLink() when the torrent doesn't have a display name yet" -- fixed in trunk for 2.00 2010-05-11 15:30:30 +00:00
Charles Kerr ad27c9d58e (trunk libT) #3203 "torrents halted after 'Tracker returned a 4xx message'" -- fixed in trunk for 2.00 2010-05-11 13:32:29 +00:00
Charles Kerr da2ef53eeb (trunk) #1796 "run script after torrent completion" -- implemented for libT, RPC, and the GTK+ and Qt clients 2010-05-08 22:42:28 +00:00
Charles Kerr 2b9ab542cb (trunk) #3060 "Local Peer Discovery" -- in the code, rename LDS as LPD for Local Peer Discovery 2010-05-08 08:42:45 +00:00
Charles Kerr 0051b8a110 re-tweak the previous commit based on feedback from kklimonda 2010-05-06 17:02:31 +00:00
Charles Kerr 2ea9f78eff (trunk libT) tweak MAX_PATH_LENGTH a little for better portability -- defer to limits.h's definition when present 2010-05-06 15:07:18 +00:00
Charles Kerr 5d272161ed (trunk libT) fix bencode.c cross-compile error on arm-based NAS reported by nahkiss. This bug was introduced in a patch to fix #3172 and was added to trunk with r10549 and 1.9x/ with r10549 2010-05-05 16:03:33 +00:00
Mitchell Livingston 7949e4df47 more logging to try to smoke out #3041 2010-05-02 18:03:49 +00:00
Mitchell Livingston ec687f14ad #2738 Fix the IPv6 DHT broken by r10616 2010-05-02 12:48:33 +00:00
Charles Kerr 94a2ffac2b (trunk libT) commit jch's patch for #2738: "fix rebinding of the IPv DHT socket" 2010-05-01 19:55:45 +00:00
Mitchell Livingston 423c3eab84 #3060 prefer peers from local discovery over those from a tracker 2010-05-01 19:16:52 +00:00
Charles Kerr 5a34347f4f (trunk) #3060 -- Local Peer Discovery patch from Eszet 2010-05-01 16:04:00 +00:00
Mitchell Livingston c006457d26 whoops 2010-04-30 23:00:16 +00:00
Mitchell Livingston 12275ccc10 #3041 remove the code to skip lines with unreadable characters (this was skipping valid lines); add temporary extra debugging 2010-04-30 22:58:03 +00:00
Charles Kerr 5eab3318ff (trunk libT) #3117 "Tracker queries to not honor bind-address-ipv4" -- fix a crash-on-shutdown reported by Waldorf in #3181. The crash was introduced by r10535 for #3117 2010-04-30 17:38:40 +00:00
Charles Kerr 24129b9bf5 (trunk libT) #2551: "when uploading to peers, prefetch local data from disk" -- commit jch patch #1, to prefetch when a block is requested. I was surprised, but when measuring io time with and without this patch, it *is* an improvement... 2010-04-30 00:27:15 +00:00
Charles Kerr 7da3b81cda (trunk libT) #2551 "when uploading to peers, prefetch local data from disk" -- commit jch patch #2, which prefetches before checksumming an individual piece 2010-04-30 00:04:15 +00:00
Charles Kerr 6643f98346 (trunk libT) #1869 "New status for torrents that reached the seed ratio" -- maybe fix the bug where the incomplete-dir and seed-ratio features conflicted with each other as reported by leena in http://trac.transmissionbt.com/ticket/1869#comment:45 2010-04-29 23:35:44 +00:00
Charles Kerr d384b38f07 (trunk) minor transmission.h API cleanup.
1. remove tr_sessionGetActiveTorrentCount()
2. make tr_sessionCountTorrents() package-visible instead of public.
3. make tr_torrentGetActivity() private instead of public.
2010-04-29 23:08:11 +00:00
Charles Kerr 31f4d24004 (trunk libT) #3172 "transmission overwrites settings.json" -- fixed with kklimonda's patch for 2.00 2010-04-29 18:56:34 +00:00
Charles Kerr 0fc7e232a4 (trunk libT) bump MAX_PATH_LENGTH from 2048 to 4096 based on report from kklimonda that the latter number is correct on Ubuntu 2010-04-29 13:57:58 +00:00
Charles Kerr 97affa46a9 (trunk libT) #2609 "Leave 5% of connection slots for incoming connections" -- implemented in trunk for 2.00 2010-04-29 03:21:54 +00:00
Charles Kerr d0873d8369 (trunk libT) reduce the period to sleep per second during verification from 200 msec to 100 msec 2010-04-28 19:04:09 +00:00
Charles Kerr 37663cf9e3 (trunk libT) #3041 "Blocklist - bad peers decreases after update; corrupt error messages" -- fix r10533 oops. fggets() doesn't strip linefeeds, so when filtering out lines with nonprintable characters, a line shouldn't fail the test just because or \r or \n. :) 2010-04-28 14:51:38 +00:00
Charles Kerr ef2fd245cf (trunk libT) #3078 "Transmission closes socket after SIGHUP" -- experimental fix 2010-04-28 04:57:21 +00:00
Charles Kerr 4b5044ad28 (trunk libT) #3117 "Tracker queries do not honor bind-address-ipv4" -- possible fix 2010-04-28 00:32:43 +00:00
Charles Kerr efe648e2d7 (trunk libT) fix a new assertion error from the nightlies reported by Ryoujin 2010-04-27 13:43:03 +00:00
Charles Kerr 3845a60c2f (trunk libT) #3041 "Blocklist - bad peers decreases after update; corrupt error messages" -- better error messages when fed unprintable characters 2010-04-27 03:58:25 +00:00
Charles Kerr 04272a6c30 (trunk libT) remove debugging fprintf() 2010-04-26 22:00:34 +00:00
Charles Kerr 9c94512672 (trunk libT) don't escape the '/' character in json strings 2010-04-25 15:30:50 +00:00
Charles Kerr c4d76cd8d0 (trunk libT) slightly better comment i tr_torrentFileCompleted() 2010-04-25 15:19:08 +00:00