]> granicus.if.org Git - transmission/log
transmission
13 years ago(trunk libT) #4295 "'download-dir-free-space' contains garbage" -- fixed by bugmenot...
Jordan Lee [Mon, 30 May 2011 18:17:16 +0000 (18:17 +0000)]
(trunk libT) #4295 "'download-dir-free-space' contains garbage" -- fixed by bugmenot patch

13 years ago(trunk libt) #4301 "strerror used instead of tr_strerror -- fix in peer-io.c too
Jordan Lee [Mon, 30 May 2011 15:50:50 +0000 (15:50 +0000)]
(trunk libt) #4301 "strerror used instead of tr_strerror -- fix in peer-io.c too

13 years ago(trunk daemon) #4301 "strerror used instead of tr_strerror" -- fixed with a patch...
Jordan Lee [Mon, 30 May 2011 15:28:55 +0000 (15:28 +0000)]
(trunk daemon) #4301 "strerror used instead of tr_strerror" -- fixed with a patch from taem

13 years ago(trunk libT) #4004 "allow drag-and-drop links into the web client" -- implemented...
Jordan Lee [Mon, 30 May 2011 15:12:42 +0000 (15:12 +0000)]
(trunk libT) #4004 "allow drag-and-drop links into the web client" -- implemented via a patch from Mook

13 years ago#4299 Don't color the entire row for file-level priorities
Mitchell Livingston [Mon, 30 May 2011 00:28:32 +0000 (00:28 +0000)]
#4299 Don't color the entire row for file-level priorities

13 years agoinstead of displaying a star for multiple priorities, display all relevant icons
Mitchell Livingston [Mon, 30 May 2011 00:09:22 +0000 (00:09 +0000)]
instead of displaying a star for multiple priorities, display all relevant icons

13 years agodead code removal
Mitchell Livingston [Sun, 29 May 2011 15:35:36 +0000 (15:35 +0000)]
dead code removal

13 years ago(trunk libT) fix webseed issue reported by Alex Hartl
Jordan Lee [Sun, 29 May 2011 14:59:00 +0000 (14:59 +0000)]
(trunk libT) fix webseed issue reported by Alex Hartl

13 years ago(trunk qt) #4281 "visualize seed progress, like the web client does" -- refinement...
Jordan Lee [Sun, 29 May 2011 05:05:18 +0000 (05:05 +0000)]
(trunk qt) #4281 "visualize seed progress, like the web client does" -- refinement from rb07 in comment:11

13 years agoremove an inaccurate assignment
Mitchell Livingston [Sat, 28 May 2011 02:18:07 +0000 (02:18 +0000)]
remove an inaccurate assignment

13 years agoshorten the web ui url from the prefs window to "http://localhost:%d/"
Mitchell Livingston [Sat, 28 May 2011 01:53:37 +0000 (01:53 +0000)]
shorten the web ui url from the prefs window to "http://localhost:%d/"

13 years ago(trunk gtk) #4014 "409 error when opening .../transmission/web without trailing ...
Jordan Lee [Sat, 28 May 2011 01:34:07 +0000 (01:34 +0000)]
(trunk gtk) #4014 "409 error when opening .../transmission/web without trailing '/'" -- use suggestion from Mezz to have the "open web client" button in the GTK+ client follow the same URL as the Qt  client

13 years ago(trunk libutp) #4260 "uTP not working on embedded device" -- use __attribute__ (...
Jordan Lee [Sat, 28 May 2011 00:50:11 +0000 (00:50 +0000)]
(trunk libutp) #4260 "uTP not working on embedded device" -- use __attribute__ ((__packed__)) on gcc compilers as suggested by KyleK

13 years ago(trunk gtk) #4254 "can't see description about Flags" -- fixed.
Jordan Lee [Sat, 28 May 2011 00:12:59 +0000 (00:12 +0000)]
(trunk gtk) #4254 "can't see description about Flags" -- fixed.

13 years ago(trunk, GTK+/Qt) #4281 "Visualize seed progress like the web client does" -- done...
Jordan Lee [Sat, 28 May 2011 00:09:15 +0000 (00:09 +0000)]
(trunk, GTK+/Qt) #4281 "Visualize seed progress like the web client does" -- done, with a modified patch & suggestion from mag

13 years ago(trunk libT) #4284 "crash via webfrontend or transmission-remote" -- use patch from...
Jordan Lee [Fri, 27 May 2011 23:28:40 +0000 (23:28 +0000)]
(trunk libT) #4284 "crash via webfrontend or transmission-remote" -- use patch from jerwied

13 years ago(trunk libT) #4283 "Remove 'Prefetch failed' error message" -- done.
Jordan Lee [Fri, 27 May 2011 23:26:05 +0000 (23:26 +0000)]
(trunk libT) #4283 "Remove 'Prefetch failed' error message" -- done.

13 years ago(trunk) #3817 remove OS proxy integration from the GTK+ client
Jordan Lee [Fri, 27 May 2011 13:36:53 +0000 (13:36 +0000)]
(trunk) #3817 remove OS proxy integration from the GTK+ client

13 years agobump Growl to 1.2.2
Mitchell Livingston [Wed, 25 May 2011 02:31:26 +0000 (02:31 +0000)]
bump Growl to 1.2.2

13 years agoenable spelling correction in the Create window -> comment filed, for funsies
Mitchell Livingston [Mon, 23 May 2011 01:27:00 +0000 (01:27 +0000)]
enable spelling correction in the Create window -> comment filed, for funsies

13 years agofix pixel alignment in About window
Mitchell Livingston [Mon, 23 May 2011 01:18:26 +0000 (01:18 +0000)]
fix pixel alignment in About window

13 years agocompile NSMutableArrayAdditions
Mitchell Livingston [Mon, 23 May 2011 01:05:52 +0000 (01:05 +0000)]
compile NSMutableArrayAdditions

13 years agofinish adding NSMutableArrayAdditions, which snuck in the last commit, and another...
Mitchell Livingston [Mon, 23 May 2011 01:00:32 +0000 (01:00 +0000)]
finish adding NSMutableArrayAdditions, which snuck in the last commit, and another explicit cast

13 years agomore explicit casting
Mitchell Livingston [Mon, 23 May 2011 00:57:29 +0000 (00:57 +0000)]
more explicit casting

13 years agoexplicit cast to Torrent * when calculating transfer name length
Mitchell Livingston [Mon, 23 May 2011 00:45:17 +0000 (00:45 +0000)]
explicit cast to Torrent * when calculating transfer name length

13 years agoadd a description method to FileListNode
Mitchell Livingston [Sat, 21 May 2011 18:29:35 +0000 (18:29 +0000)]
add a description method to FileListNode

13 years ago(trunk libT) #4270 "qtr / Qt Client fails to build when libutp is not available"...
Jordan Lee [Sat, 21 May 2011 09:13:10 +0000 (09:13 +0000)]
(trunk libT) #4270 "qtr / Qt Client fails to build when libutp is not available" -- fixed with patch by thomasg

13 years agoupdate jquery.form.min
Mitchell Livingston [Sat, 21 May 2011 02:57:17 +0000 (02:57 +0000)]
update jquery.form.min

13 years agobump jquery.form to 2.75
Mitchell Livingston [Sat, 21 May 2011 02:51:34 +0000 (02:51 +0000)]
bump jquery.form to 2.75

13 years agofix alignment issue in the German magnet link window
Mitchell Livingston [Fri, 20 May 2011 21:52:54 +0000 (21:52 +0000)]
fix alignment issue in the German magnet link window

13 years agofix an r12447 typo -- SoMud's two-letter prefix is SM, not SO
Jordan Lee [Fri, 20 May 2011 18:00:57 +0000 (18:00 +0000)]
fix an r12447 typo -- SoMud's two-letter prefix is SM, not SO

13 years ago(trunk libT) recognize a few more peer apps by name: Arctic, BitBuddy, GSTorrent...
Jordan Lee [Fri, 20 May 2011 17:55:48 +0000 (17:55 +0000)]
(trunk libT) recognize a few more peer apps by name: Arctic, BitBuddy, GSTorrent, Hekate, Meerkat, SoMud, SymTorrent, TuoTu, and XSwifter

13 years agobump version to 2.31+
Mitchell Livingston [Fri, 20 May 2011 11:34:22 +0000 (11:34 +0000)]
bump version to 2.31+

13 years agoimplement missing copyWithZone in FilePriorityCell
Mitchell Livingston [Thu, 19 May 2011 22:04:46 +0000 (22:04 +0000)]
implement missing copyWithZone in FilePriorityCell

13 years agoimplement missing copyWithZone in TorrentCell
Mitchell Livingston [Thu, 19 May 2011 22:01:16 +0000 (22:01 +0000)]
implement missing copyWithZone in TorrentCell

13 years agotweak NEWS, again
Mitchell Livingston [Tue, 17 May 2011 22:40:04 +0000 (22:40 +0000)]
tweak NEWS, again

13 years agotweak NEWS
Mitchell Livingston [Tue, 17 May 2011 22:23:24 +0000 (22:23 +0000)]
tweak NEWS

13 years agobump to 2.31 2.31
Jordan Lee [Tue, 17 May 2011 22:16:11 +0000 (22:16 +0000)]
bump to 2.31

13 years ago(trunk, gtk) update translations for transmission-gtk. Also, two new translations... 2.30
Jordan Lee [Tue, 17 May 2011 00:01:54 +0000 (00:01 +0000)]
(trunk, gtk) update translations for transmission-gtk. Also, two new translations: Punjabi and Tamil (Sri Lanka)

13 years agobump to 2.30
Mitchell Livingston [Mon, 16 May 2011 23:53:32 +0000 (23:53 +0000)]
bump to 2.30

13 years agoadd Bruno Bierbaumer to Authors & Credits
Mitchell Livingston [Mon, 16 May 2011 22:58:12 +0000 (22:58 +0000)]
add Bruno Bierbaumer to Authors & Credits

13 years ago(trunk libT) better r12434
Jordan Lee [Mon, 16 May 2011 07:11:21 +0000 (07:11 +0000)]
(trunk libT) better r12434

13 years ago(trunk libT) #4237 "tarnsmission-remote -l shows torrent list in reverse order" ...
Jordan Lee [Mon, 16 May 2011 02:09:31 +0000 (02:09 +0000)]
(trunk libT) #4237 "tarnsmission-remote -l shows torrent list in reverse order" -- revert r12424 to fix this

13 years agoUse NSDiacriticInsensitiveSearch in file list search, to match the transfer list...
Mitchell Livingston [Mon, 16 May 2011 02:03:27 +0000 (02:03 +0000)]
Use NSDiacriticInsensitiveSearch in file list search, to match the transfer list search.

13 years ago(trunk web) #4170 "Ask tracker for more peers" -- implemented by a nice patch from...
Jordan Lee [Sun, 15 May 2011 17:46:26 +0000 (17:46 +0000)]
(trunk web) #4170 "Ask tracker for more peers" -- implemented by a nice patch from Dmitry

13 years agoupdate jQuery to 1.6.1
Mitchell Livingston [Thu, 12 May 2011 22:13:55 +0000 (22:13 +0000)]
update jQuery to 1.6.1

13 years ago(trunk web) #3820 "Web UI flicking to selection" -- apply a patch from buljit to...
Jordan Lee [Thu, 12 May 2011 20:32:01 +0000 (20:32 +0000)]
(trunk web) #3820 "Web UI flicking to selection" -- apply a patch from buljit to fix a keyboard navigation regression reported by Tenzer in comment:8

13 years ago(trunk qt) #4236 "Update formatter functions to operate with signed integers" --...
Jordan Lee [Thu, 12 May 2011 20:21:27 +0000 (20:21 +0000)]
(trunk qt) #4236 "Update formatter functions to operate with signed integers" -- patch by taem

13 years ago(trunk libT) fix magnet link crash in peer-msgs.c's updateDesiredRequestCount() repor...
Jordan Lee [Thu, 12 May 2011 06:43:40 +0000 (06:43 +0000)]
(trunk libT) fix magnet link crash in peer-msgs.c's updateDesiredRequestCount() reported by quinx in the forums.

In some odd cases (such as if unchoked without having shown interest), the code could dividing a number by the torrent's block size without checking to see if the torrent had its metadata yet. This caused a division by zero because a magnet torrent's blocksize is unset until the metadata is downloaded.

13 years ago(trunk libT) make allocateBandwidth()'s "priority" field const.
Jordan Lee [Wed, 11 May 2011 21:09:31 +0000 (21:09 +0000)]
(trunk libT) make allocateBandwidth()'s "priority" field const.

13 years ago(trunk libT) minor CPU improvement to peer-mgr.c's bandwidthPulse()
Jordan Lee [Tue, 10 May 2011 14:41:59 +0000 (14:41 +0000)]
(trunk libT) minor CPU improvement to peer-mgr.c's bandwidthPulse()

We looped through all the torrents 3x to do three separate tasks... instead, loop only once and do the three tasks inside the single loop.

13 years ago(trunk libT) oops, r12424 included a second CPU improvement patch that I had in the...
Jordan Lee [Tue, 10 May 2011 05:18:40 +0000 (05:18 +0000)]
(trunk libT) oops, r12424 included a second CPU improvement patch that I had in the pipeline. Fix a typo in that patch.

13 years ago(trunk libT) CPU improvement in torrent.c's torrentInit()
Jordan Lee [Tue, 10 May 2011 04:46:44 +0000 (04:46 +0000)]
(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.

13 years ago(trunk libT) CPU optimization in peer-mgr.c's rechokeDownloads()
Jordan Lee [Tue, 10 May 2011 03:50:54 +0000 (03:50 +0000)]
(trunk libT) CPU optimization in peer-mgr.c's rechokeDownloads()

Instead of recalculating interesting pieces for each peer we loop through, calculate them just once into a bitfield and then reuse that bitfield inside the loop.

13 years ago(trunk libT) small CPU optimization in bitfield.c's countRange()
Jordan Lee [Tue, 10 May 2011 03:43:06 +0000 (03:43 +0000)]
(trunk libT) small CPU optimization in bitfield.c's countRange()

13 years ago(trunk libT) CPU improvement in peer-mgr.c's getPeerCandidates()
Jordan Lee [Tue, 10 May 2011 01:51:12 +0000 (01:51 +0000)]
(trunk libT) CPU improvement in peer-mgr.c's getPeerCandidates()

getPeerCandiates() used to read through all the torrents to determine the global peer connections, and then again to determine the global peer candidates. Now this is done in one loop instead of two.

13 years ago(trunk libT) CPU optimization in tr_bandwidthClamp().
Jordan Lee [Mon, 9 May 2011 04:16:49 +0000 (04:16 +0000)]
(trunk libT) CPU optimization in tr_bandwidthClamp().

Don't call tr_time_msec() if it's not necessary. This was one of the top CPU sinks in profiling, so removing it is a nice improvement in cases when it's not necessary, such as when speed limiting is disabled.

13 years ago(trunk libT) torrent-get CPU optimization.
Jordan Lee [Mon, 9 May 2011 04:13:14 +0000 (04:13 +0000)]
(trunk libT) torrent-get CPU optimization.

Move the tr_torrentStat() call outside of the addField() loop so that it's only called once instead of N times.

13 years ago#4232 Extend tooltip support to disabled files in Inspector->Files
Mitchell Livingston [Mon, 9 May 2011 02:13:39 +0000 (02:13 +0000)]
#4232 Extend tooltip support to disabled files in Inspector->Files

13 years ago(trunk libT) experimental fix for the unterminated announce URLs reported by blacklio...
Jordan Lee [Thu, 5 May 2011 20:41:09 +0000 (20:41 +0000)]
(trunk libT) experimental fix for the unterminated announce URLs reported by blacklion in the forums

13 years ago(trunk libT) #4227 "invalid URLs aren't filtered out of .torrents' webseed lists"
Jordan Lee [Thu, 5 May 2011 03:10:51 +0000 (03:10 +0000)]
(trunk libT) #4227 "invalid URLs aren't filtered out of .torrents' webseed lists"

If we can't parse a URL provided in the .torrent files' webseed list, that URL should be discarded.

13 years ago(trunk libT) #2338 "Add uTP support" -- increase the block bandwidth to 3000 bytes...
Jordan Lee [Wed, 4 May 2011 21:38:01 +0000 (21:38 +0000)]
(trunk libT) #2338 "Add uTP support" -- increase the block bandwidth to 3000 bytes in phase 1 as suggested by jch in comment:120.

The rationale is that by using 3000 bytes we'll send one full-size frame straight away, and leave enough buffered data for the next frame to go out in a timely manner.

13 years ago#4002 Update to jQuery 1.6
Mitchell Livingston [Tue, 3 May 2011 21:52:37 +0000 (21:52 +0000)]
#4002 Update to jQuery 1.6

13 years agoupdate the mac libevent config files
Mitchell Livingston [Tue, 3 May 2011 21:50:04 +0000 (21:50 +0000)]
update the mac libevent config files

13 years ago(trunk gtk) use ngettext() instead of gtr_dngettext() to address https://bugs.launchp...
Jordan Lee [Mon, 2 May 2011 17:58:27 +0000 (17:58 +0000)]
(trunk gtk) use ngettext() instead of gtr_dngettext() to address https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/760761

13 years ago(trunk libT) the functions tr_peerMsgsSetChoke() and tr_peerMsgsSetInterested() have...
Jordan Lee [Sun, 1 May 2011 19:10:34 +0000 (19:10 +0000)]
(trunk libT) the functions tr_peerMsgsSetChoke() and tr_peerMsgsSetInterested() have bool arguments whose types never got switched from "int" to "bool" when "bool" was adopted.

13 years ago(trunk, gtk) #4218 "open url should set focus on the open button by default" -- fix...
Jordan Lee [Sun, 1 May 2011 05:04:09 +0000 (05:04 +0000)]
(trunk, gtk) #4218 "open url should set focus on the open button by default" -- fix r12409 oops

13 years ago(trunk gtk) #4218 "open url should set focus on the open button by default" -- done.
Jordan Lee [Sun, 1 May 2011 04:14:50 +0000 (04:14 +0000)]
(trunk gtk) #4218 "open url should set focus on the open button by default" -- done.

13 years agoInclude dht-0.19.
Juliusz Chroboczek [Sat, 30 Apr 2011 23:03:25 +0000 (23:03 +0000)]
Include dht-0.19.

This fixes a bug with parsing of announce messages, noticed by cjdelisle.

13 years ago(trunk gtk) #4203 "gnome-network-properties doesn't exist in GNOME 3" -- fixed with...
Jordan Lee [Sat, 30 Apr 2011 16:22:03 +0000 (16:22 +0000)]
(trunk gtk) #4203 "gnome-network-properties doesn't exist in GNOME 3" -- fixed with patch from lesnoland

13 years ago(trunk) bump user-agent prefix to 2.30 beta 4 2.30b4
Jordan Lee [Sat, 30 Apr 2011 00:57:15 +0000 (00:57 +0000)]
(trunk) bump user-agent prefix to 2.30 beta 4

13 years ago(trunk libT) very minor copyediting: remove a little unwanted whitespace
Jordan Lee [Sat, 30 Apr 2011 00:08:24 +0000 (00:08 +0000)]
(trunk libT) very minor copyediting: remove a little unwanted whitespace

13 years agoDon't allow the Add Magnet window to be resized vertically
Mitchell Livingston [Fri, 29 Apr 2011 23:53:01 +0000 (23:53 +0000)]
Don't allow the Add Magnet window to be resized vertically

13 years ago(trunk libT) simplify the code in peer-mgr.c's rechokeDownloads().
Jordan Lee [Fri, 29 Apr 2011 23:25:12 +0000 (23:25 +0000)]
(trunk libT) simplify the code in peer-mgr.c's rechokeDownloads().

The new code has fewer calls to malloc/free and, more importantly, has less copy-and-pasted code to handle the different rechoke states.

13 years ago(trunk libT) #4215 "bug in unchoking algorithm" -- fixed.
Jordan Lee [Fri, 29 Apr 2011 22:39:54 +0000 (22:39 +0000)]
(trunk libT) #4215 "bug in unchoking algorithm" -- fixed.

13 years ago(trunk gtk) in the details dialog, use the GQuark versions of g_object_{get,set}_data()
Jordan Lee [Fri, 29 Apr 2011 21:36:44 +0000 (21:36 +0000)]
(trunk gtk) in the details dialog, use the GQuark versions of g_object_{get,set}_data()

13 years ago(trunk gtk) tweak to r12398: because most of the strings in category_filter_model_upd...
Jordan Lee [Fri, 29 Apr 2011 20:22:11 +0000 (20:22 +0000)]
(trunk gtk) tweak to r12398: because most of the strings in category_filter_model_update() will be duplicates of each other, use g_string_chunk_insert_const() instead of g_string_insert().

13 years ago(trunk gtk) in filter.c's category_filter_model_update(), use a string chunk for...
Jordan Lee [Thu, 28 Apr 2011 23:13:14 +0000 (23:13 +0000)]
(trunk gtk) in filter.c's category_filter_model_update(), use a string chunk for all those temporary strings that are allocated in a looop

13 years ago(trunk libT) tr_torrentGetFileMTime(): if the file being looked at is aleady open...
Jordan Lee [Thu, 28 Apr 2011 18:40:46 +0000 (18:40 +0000)]
(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.

13 years ago(trunk gtk) gtr_get_host_from_url(): avoid a couple of malloc() + free() calls.
Jordan Lee [Thu, 28 Apr 2011 18:37:27 +0000 (18:37 +0000)]
(trunk gtk) gtr_get_host_from_url(): avoid a couple of malloc() + free() calls.

13 years ago(trunk libT) in peer-mgr.c's refillUpkeep(), allocate the temporary array outside...
Jordan Lee [Thu, 28 Apr 2011 17:46:31 +0000 (17:46 +0000)]
(trunk libT) in peer-mgr.c's refillUpkeep(), allocate the temporary array outside of the loop instead of inside...

13 years ago(trunk libT) #4212 "excessive UDP logfile entries in debug mode" -- fixed.
Jordan Lee [Thu, 28 Apr 2011 02:51:07 +0000 (02:51 +0000)]
(trunk libT) #4212 "excessive UDP logfile entries in debug mode" -- fixed.

13 years ago(trunk libT) heap pruning: use tr_bencToBuf() instead of tr_bencToStr() when building...
Jordan Lee [Wed, 27 Apr 2011 21:38:45 +0000 (21:38 +0000)]
(trunk libT) heap pruning: use tr_bencToBuf() instead of tr_bencToStr() when building LTEP messages. This saves us from a handful of unnecessary malloc+memcpy+free calls in each instance where the change is made.

13 years ago(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessar...
Jordan Lee [Wed, 27 Apr 2011 21:33:52 +0000 (21:33 +0000)]
(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessary malloc+memcpy+free in tr_bencToFile()

13 years ago(trunk libT) tweak the ABI of tr_bencToBuf() to match the way it's being used
Jordan Lee [Wed, 27 Apr 2011 21:22:08 +0000 (21:22 +0000)]
(trunk libT) tweak the ABI of tr_bencToBuf() to match the way it's being used

13 years ago(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessar...
Jordan Lee [Wed, 27 Apr 2011 20:52:07 +0000 (20:52 +0000)]
(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessary malloc+memcpy+free when building the URL for a webseed download request

13 years ago(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessar...
Jordan Lee [Wed, 27 Apr 2011 20:50:43 +0000 (20:50 +0000)]
(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessary malloc+memcpy+free when TR_CURL_VERBOSE is logging HTTP messages

13 years ago(trunk libT) heap pruning: avoid unnecessary malloc+memcpy+frees in announcer.
Jordan Lee [Wed, 27 Apr 2011 20:41:47 +0000 (20:41 +0000)]
(trunk libT) heap pruning: avoid unnecessary malloc+memcpy+frees in announcer.

1. when creating announce URLs in announcer-http.c
2. when creating scrape URLs in announcer-http.c
3. when deep-logging what announces are in a torrent's queue in announcer.c

13 years ago(trunk libT) heap pruning: lazy-allocate the array in peer-mgr.c's getPeersToClose().
Jordan Lee [Wed, 27 Apr 2011 19:06:06 +0000 (19:06 +0000)]
(trunk libT) heap pruning: lazy-allocate the array in peer-mgr.c's getPeersToClose().

13 years ago(trunk libT) more heap pruning: avoid an unnecessary evbuffer_new() + evbuffer_free...
Jordan Lee [Wed, 27 Apr 2011 17:52:28 +0000 (17:52 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary evbuffer_new() + evbuffer_free() in tr_peerIoWriteBytes()

13 years ago(trunk libT) constify the tr_scrape_request argument to scrape_request_delegate().
Jordan Lee [Wed, 27 Apr 2011 17:30:53 +0000 (17:30 +0000)]
(trunk libT) constify the tr_scrape_request argument to scrape_request_delegate().

13 years ago(trunk libT) more heap pruning: build the "cookie_filename" field once when creating...
Jordan Lee [Wed, 27 Apr 2011 17:02:18 +0000 (17:02 +0000)]
(trunk libT) more heap pruning: build the "cookie_filename" field once when creating the web thread, instead of each time a new tr_web_task is added.

13 years ago(trunk libT) use tr_malloc() instead of malloc() in tr_loadFile() and in the fallback...
Jordan Lee [Wed, 27 Apr 2011 16:12:17 +0000 (16:12 +0000)]
(trunk libT) use tr_malloc() instead of malloc() in tr_loadFile() and in the fallback code for tr_valloc()

13 years ago(trunk libT) #4209 "Shortcut UDP tracker test" -- prioritize the UDP handler function...
Jordan Lee [Wed, 27 Apr 2011 05:29:05 +0000 (05:29 +0000)]
(trunk libT) #4209 "Shortcut UDP tracker test" -- prioritize the UDP handler functions based on frequency (uTP, DHT, UTP tracker) as outlined by jch in comment:5. Also, don't call the uTP or DHT handlers when uTP or DHT is disabled in the system preferences.

To avoid the function call overhead described by jch, instead of calling tr_sessionIsUTPEnabled() and tr_sessionIsDHTEnabled(), we test for WITH_UTP to be defined and test the tr_session.isUTPEnabled and tr_session.isDHTEnabled flags directly.

13 years ago(trunk libT) #4209 "Shortcut UDP tracker test" -- the goal of #4209 is to minimize...
Jordan Lee [Wed, 27 Apr 2011 05:03:10 +0000 (05:03 +0000)]
(trunk libT) #4209 "Shortcut UDP tracker test" -- the goal of #4209 is to minimize the cost of the UDP event callback function, so apply the heap pruning eye to that by removing an unnecessary malloc/free call there.

Previously we allocated a 4096 character buffer each time; now we allocate it on the stack. It seems all the distros and OS flavors that Transmission runs on have multi-MB default stack sizes, so a hardwired 4K array should be safe.

13 years ago#4206 "RPC Documentation missing defualt value for 'torrent-set-location' argument...
Jordan Lee [Mon, 25 Apr 2011 21:11:08 +0000 (21:11 +0000)]
#4206 "RPC Documentation missing defualt value for 'torrent-set-location' argument 'move'" -- fixed.

13 years ago(trunk libT) #4204 "Availability is the same as the amount downloaded when there...
Jordan Lee [Sun, 24 Apr 2011 22:56:42 +0000 (22:56 +0000)]
(trunk libT) #4204 "Availability is the same as the amount downloaded when there are no seeders" -- possible fix

It looks like we had the wrong test on the replication count array size.

13 years agoOptimise UDP dispatch (fixes #4209).
Juliusz Chroboczek [Sun, 24 Apr 2011 19:12:28 +0000 (19:12 +0000)]
Optimise UDP dispatch (fixes #4209).

Make quick inline tests for the DHT and UDP tracker protocols, which
avoids calling tau_handle_message for each µTP packet.

13 years ago(trunk daemon) #2338 "Add uTP support" -- added er13's patch from comment:115 to...
Jordan Lee [Wed, 20 Apr 2011 23:17:10 +0000 (23:17 +0000)]
(trunk daemon) #2338 "Add uTP support" -- added er13's patch from comment:115 to add uTP enable/disable commands to transmission-remote. Thanks er13!

13 years ago(trunk utils) add '-o' description to transmission-create's manpage.
Jordan Lee [Wed, 20 Apr 2011 19:18:28 +0000 (19:18 +0000)]
(trunk utils) add '-o' description to transmission-create's manpage.