Commit Graph

792 Commits

Author SHA1 Message Date
Jordan Lee ae89e4683d add user_data (void *) to the queue callback 2011-08-03 23:40:51 +00:00
Jordan Lee ce77935009 Add a callback to be invoked when the queue starts a torrent. 2011-08-03 03:14:57 +00:00
Jordan Lee 3430ce714c #671 "torrent queuing" -- fix r12611 oops 2011-08-02 14:03:43 +00:00
Jordan Lee 307754e807 #671 "torrent queuing" -- modify the queue implementation s.t. every torrent has a queuePosition, even if it's not currently in the queue. 2011-08-02 03:59:54 +00:00
Jordan Lee 2e9d419bd4 #671 "torrent queuing" -- add a tr_stat.isStalled flag. 2011-08-01 23:27:11 +00:00
Jordan Lee 61174b007e (trunk) #671 "torrent queuing" -- Preliminary implementation. Covers libtransmission; GTK+ and Qt clients, and rudimentary web client support. 2011-08-01 22:24:24 +00:00
Jordan Lee 8ae478a62f (trunk libT) #4395 "Crash when removing data for incomplete magnetized torrent file" -- fixed. 2011-07-30 13:11:06 +00:00
Jordan Lee 9b208d2777 (trunk libT) possible fix for three related tickets. still needs more testing.
#3732 "Delete system files when removing torrent data"
#4224 "Folders don't get deleted"
#3871 "torrent-set-location does not delete old folder if only one file in torrent"
2011-07-10 17:34:03 +00:00
Jordan Lee fdec244f04 (trunk libT) #4336 "availablility nonsense" -- fix bug in tr_cpMissingBytesInPiece() introduced last week by r12515 for #4332. Add assertions to the nightly build to watch for regressions of this fix.
The bug was that I fixed #4332's off-by-one improperly in tr_cpMissingBlocksInPiece(). The piece's last block has to be calculated separately because its byte size may be different than the other blocks, The mistake in r12515 was that the last block could wind up being counted twice.
2011-07-02 13:20:17 +00:00
Mitchell Livingston 62f594267a #4326 flags for completeness and wasRunning flipped in completeness callback 2011-06-19 03:31:41 +00:00
Jordan Lee 52512857ae (trunk libT) better r12434 2011-05-16 07:11:21 +00:00
Jordan Lee 7cd9cc0176 (trunk libT) #4237 "tarnsmission-remote -l shows torrent list in reverse order" -- revert r12424 to fix this 2011-05-16 02:09:31 +00:00
Jordan Lee 94cc3f87f7 (trunk libT) CPU improvement in torrent.c's torrentInit()
Add the new torrent to the session's torrent list by prepending it instead of appending it. That way we don't have to walk the list in order to add it. tr_session.torrentList is an unordered list, so there's no real difference between prepending and appending.
2011-05-10 04:46:44 +00:00
Jordan Lee 513a3fcc1d (trunk libT) tr_torrentGetFileMTime(): if the file being looked at is aleady open in fdlimit's file cache, use that cached handle instead of deriving our own. 2011-04-28 18:40:46 +00:00
Jordan Lee 0245703634 (trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only requires one. 2011-04-02 07:36:34 +00:00
Jordan Lee e5a6641bda (trunk libT) tr_torrentFindFile2(): avoid an unnecessary malloc() + free() if the file we're looking for is complete and doesn't have a ".part" suffix 2011-04-02 03:31:41 +00:00
Jordan Lee 2328456a4a (trunk libT) simplify tr_torrent's hasAnyLocalData() to be more readable, and also to avoid yet another unnecessary malloc() and free() 2011-04-01 04:33:35 +00:00
Jordan Lee 1b02eb8641 (trunk libT) use aggregation for the tr_bandwidth objects owned by tr_session and tr_torrent 2011-03-31 14:53:22 +00:00
Jordan Lee bb561b5494 (trunk libT) fix ABR detected by clang static analyzer in tr_torrentStat.
When copying a value to s->errorString, it used memcpy(a,b,sizeof(a)) where sizeof(a) was larger than sizeof(b). Fixed by replacing the memcpy() call with tr_strlcpy().
2011-03-31 04:01:55 +00:00
Jordan Lee 83c0e4f011 (trunk libT) break the mac build and introduce new crashes.
This is partially to address #4145 "Downloads stuck at 100%" by refactoring the bitset, bitfield, and tr_completion; however, the ripple effect is larger than usual so things may get worse in the short term before getting better.

livings124: to fix the mac build, remove bitset.[ch] from xcode
2011-03-28 16:31:05 +00:00
Jordan Lee bd88521332 (trunk) yet more "#include" tweaks 2011-03-25 15:03:42 +00:00
Jordan Lee b4d36aeb54 (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
Jordan Lee 13514e16a7 (trunk libT) #4127 "Torrent complete script doesn't pass on the environment" -- fixed with patch from geirha.
The fix was to putenv() the new environment variables, then call execvp() instead of execve().
2011-03-16 18:11:48 +00:00
Jordan Lee 374ed10f3b (trunk) it's bad form to #include so many system headers in libtransmission/utils.h... 2011-03-16 18:04:23 +00:00
Jordan Lee 075a0a8b86 (trunk libT) use libevent's portability wrapper for strcasecmp() 2011-03-13 08:21:55 +00:00
Jordan Lee d1f3a885a5 (trunk libT) ensure that a tr_torrent's peer id is initialized when the tr_torrent is constructed 2011-03-11 15:00:10 +00:00
Jordan Lee 896c9b54e1 (trunk libT) Add an enumeration for the peer id length. Use that enum for the peer_id fields in tr_session and tr_torrent.
This also avoids an extra malloc/free per-torrent and per-session, but mostly this tweak is for the extra readability of the PEER_ID_LEN=20 enum.
2011-03-10 12:35:23 +00:00
Jordan Lee 9bf2434e14 (trunk) copyediting: remove trailing spaces from source code lines in daemon/ gtk/ libtransmission/ and utils/ 2011-03-04 23:26:10 +00:00
Jordan Lee b10aea6fcc (trunk) #4072 "remove the 'know peer count' field in Inspector" -- remove it from libtransmission too 2011-03-04 04:50:50 +00:00
Jordan Lee 0c36e0c9de (trunk libT) remove the unused tr_ratecontrol code. switch webseed over to using tr_bandwidth. 2011-03-03 18:33:24 +00:00
Jordan Lee aa89303254 (trunk libT) #4073 "suggest inclusion of <signal.h> in torrent.c" -- done. 2011-02-28 13:10:56 +00:00
Jordan Lee 9d95bd151d (trunk libT) #4035 "In seed state, transmission disconnect from leechers" -- fixed. 2011-02-24 14:35:45 +00:00
Jordan Lee 2b9db3c242 (trunk libT) #4048 "use bitsets instead of bitfield in tr_completion" -- done.
Excuse the sprawl. Much of this didn't fit into self-contained commits.
2011-02-23 03:54:04 +00:00
Jordan Lee e77a627d3c (trunk libT) mark the two "progress" args to tr_torrentSetLocation() as volatile. 2011-02-19 20:10:05 +00:00
Jordan Lee 72f9ab91fa (trunk) make tr_torrentName() a public function.
This has been a private function in libtransmission for awhile now but it makes more sense as a public function.
2011-02-15 15:18:51 +00:00
Jordan Lee 2b905bdbcc (trunk libT) silence minor "unused function argument" compiler warning 2011-02-07 23:09:36 +00:00
Jordan Lee af1e920ab7 (trunk libT) minor futzing: remove unnecessary "assert( tr_isTorrent( tor ) );" calls
Remove these calls from private functions whose callers have already asserted the same thing.
2011-02-03 22:53:02 +00:00
Jordan Lee e8614030a2 (trunk libT) #3973 "JIT verification verifies fresh downloaded torrents" -- remove a debugging printf() statement that shouldn't have been checked in. 2011-02-02 23:33:25 +00:00
Jordan Lee 06948a8514 (trunk libT) #2955 "verify pieces only when necessary, or when the user requests it." -- improvements to .resume file
As pointed out by longinus00 and ijuxda, storing per-piece timestamps in the .resume file can involve a lot of overhead. This commit reduces the overhead by adding a couple of optimizations: (1) in cases where *all* or *none* of the files' pieces were checked after the file's mtime, we can safely fold all the pieces' mtimes into a single per-file mtime. (2) since unix time takes up a lot of space when rendered as a benc integer, find a common per-file "baseline" number, then store the pieces' timestamps as offsets from that number.  Also add documentation explaining this new format, and also better explaining the pre-2.20 progress format.
2011-02-02 21:17:16 +00:00
Jordan Lee 5fc1ff8855 (trunk libT) #3973 "JIT verification verifies freshly-downloaded torrents" -- test fix.
Files downloaded in Transmission 2.20 betas [1..3] forced each piece to be checked twice -- once on download, and once when uploading the piece for the first time. Older versions of Transmission didn't perform the latter check unless the file had changed after it was downloaded. This commit restores that behavior.
2011-02-02 20:30:04 +00:00
Jordan Lee e7f81543ec (trunk libT) #3961 "Support for running scripts when a torrent finishes downloading on Windows" -- fixed. patch by rb07
The changes to torrentCallScript() weren't portable to Windows, so rb07 has provided a patch.
2011-01-30 01:41:48 +00:00
Jordan Lee 125d2506cd (trunk libT) torrent.c setLocation(): don't try to move a file if the source and destination paths are the same. 2011-01-24 06:07:06 +00:00
Jordan Lee 75ffe999d4 (trunk libT) #3933 "announcer.c peer parsing could be simpler" -- fixed.
Remove redundant code by using tr_peerMgrCompactToPex() and tr_peerMgrCompact6ToPex() to parse compact ipv4 and ipv6 peer lists. Simplify the old-style benc peer list parsing and fix a bug that returned too few bytes in the old-style peer array.
2011-01-22 17:45:54 +00:00
Jordan Lee 9220ad2300 (trunk libT) #3932 "Assertion failed: (tab != NULL), function tr_torrentAvailability"
Looks like tab can be NULL from the Mac client when magnet links are involved and the Mac client doesn't know how many pieces are available, so that assertion's not appropriate.
2011-01-22 13:21:20 +00:00
Jordan Lee 879a2afcbd Update the copyright year in the source code comments.
The Berne Convention says that the copyright year is moot, so instead of adding another year to each file as in previous years, I've removed the year altogether from the source code comments in libtransmission, gtk, qt, utils, daemon, and cli.

Juliusz's copyright notice in tr-dht and Johannes' copyright notice in tr-lpd have been left alone; it didn't seem appropriate to modify them.
2011-01-19 13:48:47 +00:00
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 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
Mitchell Livingston 5a8800fda1 remove a LAZY debug message 2011-01-06 00:54:37 +00:00
Charles Kerr 1f0c916469 (trunk libT) #2955 "jit verify" -- undo r11606. the old error message was longer, but more helpful 2010-12-30 18:35:18 +00:00
Charles Kerr efcbab893f (trunk, libT) #2955 "jit verify" -- shorten the error message for torrents whose files disappeared. 2010-12-30 07:42:14 +00:00
Charles Kerr 123ad33ce4 (trunk libT) #3860 "memory leak in torrentCallScript" -- patched. 2010-12-29 21:00:07 +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
Charles Kerr 16a5fa4073 (trunk) #1408 "total downloading and seeding time per torrent" -- add patch to track how long a torrent has been seeding or downloading 2010-12-23 19:32:59 +00:00
Charles Kerr 81cb2276c8 (trunk gtk) #3844 "error popup when adding a relative path" -- fixed. initial patch by ijuxda. 2010-12-22 07:04:11 +00:00
Charles Kerr 28ec370476 (trunk libt) experimental fix for the updated torrent issue reported by Lacrocivious 2010-12-22 04:29:41 +00:00
Charles Kerr 6b7babde5c (trunk libT) remove some of the lazy-verify debug messages. 2010-12-21 23:09:26 +00:00
Charles Kerr 47a60e005e (trunk libT) #2955 "lazy torrent verification" -- speed up setLocalErrorIfFilesDisappeared(). this makes a big difference when loading a lot of torrents on startup. 2010-12-17 14:57:19 +00:00
Charles Kerr 3e848396bb (trunk libT) make tr_torrentDeleteLocalData() a private function 2010-12-16 03:41:46 +00:00
Charles Kerr 821d315453 (trunk) #3675 "Not all .part files are removed" -- added patch for libtransmission and GTK+ client 2010-12-16 03:38:07 +00:00
Charles Kerr d40a60bd02 (trunk libT) #3675 "Not all .part files are removed" -- flush the cache before removing local data. 2010-12-15 20:28:49 +00:00
Charles Kerr f1e236693d (trunk libT) #3764 "script-torrent-done shouldn't block libtransmission" -- handle zombie processes. 2010-12-15 15:35:06 +00:00
Charles Kerr 9a5a429761 (trunk libT) #3764 "script-torrent-done shouldn't block libtransmission" -- add the "calling script ..." line back into the logfile. 2010-12-15 14:55:20 +00:00
Charles Kerr 082475e43b (trunk libT) #3764 "script-torrent-done shouldn't block libtransmission" -- fixed. 2010-12-15 04:35:41 +00:00
Charles Kerr a31e23f094 (trunk libt) #2955 "lazy torrent verification" -- don't force a reverify after moving a torrent's contents to a new direction 2010-12-13 20:01:38 +00:00
Charles Kerr 27a1b2dc33 (trunk) one of the periodic, banal "remove-trailing-spaces from lines of source code" cleanup commits 2010-12-12 16:43:19 +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 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 8d15c48a3f (trunk libT) #3617 "1000+ warnings of 'inlining failed' in libtransmission when compiled with gcc 4.4.4" -- fixed. 2010-10-11 15:41:27 +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 65b4e28c60 (trunk libT) #3571 "Torrent done script clears important env vars" -- fixed. 2010-09-21 16:26:48 +00:00
Charles Kerr c7ebb37876 (trunk libT) #3566 "Memory leak in libtransmission/torrent.c: refreshCurrentDir()" -- fixed. 2010-09-18 21:57:22 +00:00
Mitchell Livingston 9135d5e061 fix a display issue with the idle time for a split second after the transfer starts, since the transfer would be marked as downloading but would not yet have a start time 2010-09-12 19:49:06 +00:00
Mitchell Livingston b3c8ca4604 #3513 inactive limit should set torrent state as finished, not stopped 2010-09-12 18:58:49 +00:00
Mitchell Livingston 94ea77a014 #3517 Only apply the idle seed limit when the transfer is comple 2010-08-19 22:14:59 +00:00
Mitchell Livingston 7e52a2e8bb don't set an idle eta if the transfer is currently uploading 2010-08-14 19:44:43 +00:00
Mitchell Livingston c3715ca6ce add a stat for the eta of the seeding idle limit, and use it in the Mac eta display 2010-08-14 15:30:43 +00:00
Mitchell Livingston 8bee7fa23c update Mac build for the change from inactive to idle 2010-07-24 03:19:41 +00:00
Charles Kerr 3655047e85 (trunk) #2560: rename "inactive limit" to "idle limit". Add support in GTK+ client and preliminary support to Qt client 2010-07-24 02:57:39 +00:00
Mitchell Livingston 496712a87d fix typo 2010-07-23 23:37:03 +00:00
Mitchell Livingston feb6e6b785 fix inactivity typo 2010-07-23 11:02:57 +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
Mitchell Livingston 235caa572b Have libtransmission keep track of idle seconds. Use this value for determining the stalled minutes in the Mac code. 2010-07-11 21:02:30 +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 8d60d46538 (trunk libT) #3407 "stop ratio callback called twice in some situations" -- experimental fix in trunk 2010-07-11 18:36:18 +00:00
Charles Kerr e3e7683077 (trunk libT) #3388 "file completion percentage never updates" -- fixed. 2010-07-10 21:30:37 +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 1df54942dc (trunk libT) fix overflow error in fileBytesCompleted() 2010-07-03 15:11:38 +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 4ad26f7910 (trunk libT) a couple more minor -Wconversion warnings 2010-07-01 05:39:54 +00:00
Charles Kerr a5a1f38393 (trunk libT) fix more issues found by -Wconversion 2010-07-01 05:14:34 +00:00
Charles Kerr 254a1f15cb (trunk libT) down the rabbit hole: various minor type correctness changes unearthed by -Wconversion 2010-06-30 16:40:19 +00:00
Charles Kerr 7638e44724 (trunk libT) #3320 "If the seed ratio is already met" -- fix a bug in r10848 reported by BMW 2010-06-25 15:39:17 +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 41f9ae0500 (trunk) #3339 "crash when download some magnet links" -- fixed 2010-06-24 20:36:05 +00:00
Charles Kerr a54270a11a (trunk libT) #3308 "Don't stop/restart torrents when setting the local data's location" -- fixed 2010-06-24 17:49:20 +00:00
Charles Kerr 5e2a6f6c6a (trunk libT) #2581 "RPC extended to manage tracker lists" -- add safeguards in tr_torrentSetAnnounceList() to handle the case of tracker arrays not being sorted by tier. 2010-06-23 16:06:15 +00:00
Charles Kerr 5ad7ed550f (trunk) more win32 fixes from rb07 in #3311 2010-06-22 00:12:52 +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 13b073fcdc (libT) #3291 "tr_torrent.infoDictOffset should be lazily evaluated" 2010-06-16 03:05:23 +00:00
Charles Kerr 0ad06c50e8 (trunk) #3262 "problems with '.' as the first character in a .torrent's filename" -- fixed in trunk for 2.00 2010-06-07 14:25:31 +00:00
Charles Kerr 60ce7e5263 (trunk libT) #3258 "Transmission 1.93 sends 'stopped'+'started' announce instead of 'completed' if the incomplete-dir is enabled" -- probable fix 2010-06-03 16:37:50 +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 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 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 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 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 5a34347f4f (trunk) #3060 -- Local Peer Discovery patch from Eszet 2010-05-01 16:04:00 +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 c4d76cd8d0 (trunk libT) slightly better comment i tr_torrentFileCompleted() 2010-04-25 15:19:08 +00:00
Charles Kerr 546bca723b (trunk libT) #3159 "better decision-making when choosing which peers to initiate new connections with" -- experimental commit 2010-04-20 21:54:03 +00:00
Charles Kerr 99a5412601 (trunk libT) #3105 "Torrentadd over rpc not files wanted/unwanted bug" -- fixed in trunk for 2.00 2010-04-19 23:10:30 +00:00
Charles Kerr 997e747821 (trunk libT) #3145 "Log torrent deletion" -- Longinus00's patch applied to trunk for 2.00 2010-04-17 04:07:56 +00:00
Charles Kerr b7827565ee (trunk libT) #1869 "new status for torrents that reach seed ratio" -- possible fix for the bug reported by leena 2010-04-15 13:43:54 +00:00
Charles Kerr 1a7bcbbea2 (trunk) #1869 "new status for torrents that reached the seed ratio" -- add temporary debug messages to help track down the issue leena's reporting in that ticket 2010-04-14 13:36:43 +00:00
Charles Kerr 8f0487b9d3 (trunk libT) in seedRatio, handle the case where a file is downloaded more than once 2010-04-14 00:34:31 +00:00
Charles Kerr 0aa422e262 (trunk libT) #1869 "new status for torrents that reached the seed ratio" -- maybe fix the issue reported by leena 2010-04-14 00:03:23 +00:00
Mitchell Livingston 39515ea28b use leftUntilDone instead of percentDone when determining finished status 2010-04-13 00:20:04 +00:00
Mitchell Livingston 6a4954e867 #1869 Move the finished state to libtransmission. This setting is now remembered between launches. This also causes torrents that hit the seed ratio to not have this setting changed to unlimited until start. 2010-04-02 17:57:25 +00:00
Charles Kerr 83f97a35fe (trunk libt) #3004 "Transmission doesn't report to the user errors when saving settings files" -- committed Longinus00's patch to trunk for 2.00 2010-03-22 00:55:43 +00:00
Charles Kerr 1d8d9d8447 (trunk libT) code cleanup: after r10346, we don't need to keep the per-torrent cancel/block histories anymore 2010-03-10 15:55:00 +00:00
Charles Kerr b850349479 (trunk) #2993 "'Downloaded' much greater than 'Have' or 'verified'" -- add new congestion-based throttle for 2.0 2010-03-08 04:29:58 +00:00
Charles Kerr d83f8e09d3 (trunk libT) #2885 "'Move data file' does not change the location for data yet to be downloaded" -- fixed in trunk for 1.92 2010-03-06 22:33:45 +00:00
Charles Kerr d54e894ccb (trunk libT) #3015: "Transmission announces badly when the port is changed" -- fixed in trunk for 1.92. Thanks to Rolcol for tracking down the cause of this bug. 2010-03-06 21:24:28 +00:00
Charles Kerr 3e9d545713 (trunk libT) #2995 "Incompletely downloaded files not trashed" -- fixed in trunk for 1.92 2010-02-28 15:27:48 +00:00
Charles Kerr 54b394d160 (trunk libT) #2984 "Transmission 1.91/OSX deletes completed download" -- experimental commit, and more debug messages 2010-02-27 18:52:46 +00:00
Charles Kerr c1a6e7b5d9 (trunk libT) #2933 "looking up torrents by info hash should be case-insensitive" -- fixed in trunk for 1.91 2010-02-21 00:26:54 +00:00
Charles Kerr 71ed8193b8 (trunk libT) (1) reduce the default tracker announce timeout from 120 to 90 seconds. (2) for partial seeds, send an event=paused when we transition from being leeches to partial seeds, just as you would send an event=completed when becoming a seed 2010-02-20 21:03:49 +00:00
Charles Kerr 5a9a07b71e (trunk) #2938 "crash when adding a torrent by URL from an ftp source over RPC" -- fixed in trunk for 1.91 2010-02-20 15:57:05 +00:00
Charles Kerr 6407e38df7 (trunk libT) fix a potential (but currently unused) code path in tr_torrentNew() that could cause a memory leak. Thanks to Elbandi for pointing this out. 2010-02-15 00:22:18 +00:00
Charles Kerr 8aa62240f8 (trunk libT) fix memory leak when trying to add duplicate torrents. thanks valgrind! 2010-02-12 04:13:51 +00:00
Charles Kerr b7b5a0e427 (trunk) #2894 "tr_torrentGetFileDL() and tr_torrentGetFilePriority() should go away" -- get rid of it in the mac client and libtransmission too 2010-02-11 15:05:07 +00:00
Charles Kerr e03ad192c7 (trunk libT) demote the "Got N peers from tracker" and "Found N peers from DHT" messages from info to debug... there are just too many of them 2010-02-11 01:20:43 +00:00
Charles Kerr 9fffb2be35 (trunk libT) Yippie, plug a small memory leak reported by valgrind! 2010-02-10 05:27:14 +00:00
Charles Kerr 36d97610bd (trunk) #2802, #2716, #2717 -- remember magnet links and their settings between sessions, and allow their trackers to be modified 2010-02-02 22:45:22 +00:00
Charles Kerr 094f76d9ca (trunk libT) #2846 "Priority Selection in `Add' Window" -- added RPC hooks for doing this via remote client 2010-02-02 07:48:03 +00:00
Charles Kerr f7c98630d7 (trunk libT) #2720 "Misleading error message when adding a duplicate magnet transfer" -- add a public API call in libtransmission for testing to see if we already have a magnet link as a torrent 2010-02-02 01:15:26 +00:00
Charles Kerr 1c8426cfee (trunk libT) fix some #include statements 2010-01-20 23:58:09 +00:00
Charles Kerr 649819d1be (trunk libT) fix tiny typo in previous commit... :/ 2010-01-20 20:25:13 +00:00
Charles Kerr 2dce44fbe7 (trunk libT) still too wordy 2010-01-20 20:15:23 +00:00
Charles Kerr 5b1af96165 (trunk libT) #2676 "Transmission writes to non-existent drive in '/Volumes'" -- we're already stopping the torrent when the local data disappears, but let's add a more explicit and helpful error message to help users diagnoses the problem. 2010-01-20 20:08:12 +00:00
Charles Kerr 5c26afdb52 happy new year! 2010-01-04 21:00:47 +00:00
Charles Kerr a5446669b4 (trunk libT) #2711 "no metadata exchange when using magnet links and trackerless torrents" -- fixed 2010-01-04 20:28:54 +00:00
Charles Kerr 42fb92170a (trunk libT) remove dead code: tr_announce_list_err 2010-01-04 20:14:25 +00:00
Charles Kerr 59c10a3dc8 (trunk libT) #2722 "crash when removing/modifying trackers" -- fixed 2010-01-04 09:11:27 +00:00
Charles Kerr 6f68e30f37 (trunk libT) consistency tweak: rename tr_global{Lock,Unlock,IsLocked} as tr_session{Lock,Unlock,IsLocked} 2010-01-04 09:05:02 +00:00
Charles Kerr be77238af4 (trunk libT) #2709 "RPC files-unwanted" out-of-bounds access 2010-01-03 17:21:10 +00:00
Charles Kerr 6b8fb48d64 (trunk libT) replace the TR_INLINE macro with the standard "inline" keyword, since we require inline functions anyway 2010-01-01 22:26:35 +00:00
Mitchell Livingston f2bbae3fd8 some more insignificant changes I have sitting around locally 2009-12-31 03:19:54 +00:00
Mitchell Livingston 90ecb67c92 fix bug from r9820 where file progress was either 0.0 or 1.0 2009-12-29 01:35:52 +00:00
Mitchell Livingston f6a5117ef9 calculate proper file progress for 0-byte files (fixes #2689) 2009-12-25 16:56:33 +00:00
Charles Kerr 3e2269e5e3 (trunk libT) #2632 "Add streaming capability to libtransmission (but not the Transmission GUI clients)" -- revert this feature due to pushback from devs and users and the 1.80 freeze 2009-12-24 18:01:48 +00:00
Charles Kerr 12ffdb7d87 (trunk libT) #2632 "Add streaming capability to libtransmission (but not the Transmission GUI clients)" -- implemented 2009-12-24 01:02:54 +00:00
Charles Kerr 20a4560198 (trunk libT) remove the test for duplicate trackers in the announce list. 2009-12-12 04:12:04 +00:00
Charles Kerr 1c772bd1fe (trunk libT) finally get rid of the last remnants of tr_timer 2009-12-10 05:52:46 +00:00
Charles Kerr 4b3b5dcd8a (trunk libT) by request, remove a clientData argument from tr_torrentDeleteLocalData() (reverts r9690) 2009-12-09 03:51:21 +00:00
Charles Kerr 5f9f97ee2a (trunk libT) by request, add a clientData argument to tr_torrentDeleteLocalData() 2009-12-09 03:40:35 +00:00
Charles Kerr c5af8965e0 (trunk libT) the deleteFunc passed in as the second argument to tr_torrentDeleteLocalData() should /not/ be called unless the file being passed to it actually exists. Reported by livings124 2009-12-09 03:00:20 +00:00
Charles Kerr 907c67ba78 (trunk libT) remove unnecessary #includes 2009-12-07 03:57:55 +00:00
Charles Kerr 78ead8c3dd (trunk) update the copyright notices 2009-12-05 02:19:24 +00:00
Charles Kerr de0d6af06b (trunk libT) remove unnecessary code 2009-11-28 16:25:05 +00:00
Charles Kerr e1c6b792aa (trunk libT) #2610 "avoid unnecessary calls to time(NULL)" 2009-11-26 18:47:08 +00:00
Charles Kerr cebcc3b6ef (trunk libT) #2096 "magnet links" -- add a callback for clients to know when a magnet torrent's metainfo is finished downloading. 2009-11-26 17:58:44 +00:00
Charles Kerr 04011d212b (trunk libT) #2110: "allow adding torrents with no trackers" -- fix crash in tr_torrentSetAnnounceList() when the new number of trackers is 0. Reported by Rolcol. 2009-11-25 18:57:54 +00:00
Charles Kerr 197cf649bf (trunk) more magnet work. fix a couple of bugs reported by rolcol: (1) crash with incomplete dir + magnet links; (2) dialog focus issue in the gtk client 2009-11-25 08:22:57 +00:00
Charles Kerr 5e51618f83 (trunk libT) fix the resume files' "percent done" bug that was introduced yesterday with the magnet link commit 2009-11-25 05:10:27 +00:00
Charles Kerr 034023f148 (trunk libT) fix another edge case for magnet links 2009-11-24 19:08:13 +00:00
Charles Kerr c102f199c3 (trunk libT) don't allow duplicate torrents to be added via magnet links 2009-11-24 17:31:20 +00:00
Charles Kerr 3610c5ea62 (trunk) more magnet fixes 2009-11-24 17:10:40 +00:00
Charles Kerr f69e335291 (trunk) #2096: Magnet, BEP #9 support 2009-11-24 02:16:31 +00:00
Charles Kerr 1cbbcf9fa1 (trunk libT) jch's patches 0001 through 0004 for ticket #2576, IPv6 support for DHT (BEP #32) 2009-11-24 01:59:51 +00:00
Mitchell Livingston be85dc0fac a couple of more swarm speed removals 2009-11-22 01:12:44 +00:00
Mitchell Livingston 2b492cdb6e #2592 remove swarm speed from libtransmission 2009-11-22 01:03:36 +00:00
Charles Kerr b906c125ac (trunk libT) #2548: T's request queue can send out too many duplicate requests 2009-11-08 23:20:00 +00:00
Charles Kerr 4d817b0701 (trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies... 2009-11-02 00:17:30 +00:00
Charles Kerr 0a4d8602e0 (trunk libT) #2548: T's request queue can send out too many duplicate requests 2009-11-01 02:10:47 +00:00
Charles Kerr 3a75050be4 (trunk libT) undo all the test commits for #2533 from r9445 through r9451. The problem appears to be an llvm issue, reported upstream @ apple dev center bug #7353773 2009-10-31 00:54:03 +00:00
Charles Kerr 7113ae2502 (trunk libT) BANG 2009-10-30 22:03:32 +00:00
Charles Kerr 9ae5ce0bf8 (trunk libT) tear out another line of code. subtle, this isn't. this is like figuring out which neighbor is stealing your newspaper in the morning by secretly shooting a different neighbor each morning until the paper stops disappearing. 2009-10-30 21:51:59 +00:00
Charles Kerr 66eac308ef (trunk libT) still banging along at #2533 2009-10-30 21:41:41 +00:00
Charles Kerr 632f98c8fd throwing darts in the dark. this smells like a compiler bug. 2009-10-30 17:29:51 +00:00
Charles Kerr 8bdaedc723 (trunk libT) lather, rinse, repeat 2009-10-30 17:17:53 +00:00
Charles Kerr 586deb9d12 (trunk libT) Adding term debug messages to help track down #2533 w/m1b and *acrocivious 2009-10-30 16:46:33 +00:00
Charles Kerr a7361372c3 Adding term debug messages to help track down #2533 w/m1b 2009-10-30 16:24:58 +00:00
Charles Kerr a34d742e36 (trunk libT) OS X fix for tr_torrentDeleteLocalData() -- .DS_Store gave it trouble 2009-10-30 04:23:51 +00:00
Charles Kerr d60fa654cb (trunk libT) fix regression introduced by #2539 that caused single-file torrents to not be deleted even if the user requested it 2009-10-30 02:58:30 +00:00
Charles Kerr b5042148e8 (trunk libT) #2539: "incomplete folder" feature may lead to deleted files 2009-10-29 17:00:22 +00:00
Charles Kerr 4b804e32ed (trunk libT) another tweak to tr_torrentSetLocation() 2009-10-28 04:50:37 +00:00
Charles Kerr 22e3f1175a (trunk libT) #2531: when the user moves a torrent from one location to another, we don't need to reverify if the files are just rename()d 2009-10-27 23:00:34 +00:00
Mitchell Livingston 130c9af1d1 on second thought, the other UI's might want this value sooner or later, and it's cheaper to calculate it in the stat function 2009-10-25 18:49:20 +00:00
Mitchell Livingston a5e0b6e5b2 since the Mac UI is the only one to use it, move percentRatio calculation into the Mac code 2009-10-25 18:45:35 +00:00
Mitchell Livingston 9254de1a36 smooth out the upload eta the same way as the download eta 2009-10-25 02:42:57 +00:00
Mitchell Livingston 47e19c4410 when calculating the "smoothed" eta, 1. only factor in previous speeds when those speeds were recent (ie. if we just resumed from pause, discard the previous speed) and 2. factor in if the speed was 0 as well 2009-10-25 02:36:03 +00:00