]>
granicus.if.org Git - transmission/log
Jordan Lee [Wed, 13 Apr 2011 22:00:55 +0000 (22:00 +0000)]
(trunk gtk) more heap pruning: minor GtkTreeModel changes
Use gtk_tree_model_iter_nth_child() instead of gtk_tree_model_get_iter_first() to avoid an unnecessary gtk_tree_path object being created and destroyed. This is a very minor change and I'm not sure how useful it really is, but it doesn't hurt.
Jordan Lee [Wed, 13 Apr 2011 06:18:30 +0000 (06:18 +0000)]
(trunk gtk) more heap pruning:
querying gconf2 each time the curl callack function is called is expensive, so query it once -- then again later, if the proxy settings change -- and remember the values in a local struct.
Jordan Lee [Tue, 12 Apr 2011 11:13:41 +0000 (11:13 +0000)]
(trunk gtk) transmission-gtk requires GTK+ 2.8 or higher, so remove the `#if GTK_CHECK_VERSION(2,8,0)' checks because we already know the answer.
Jordan Lee [Tue, 12 Apr 2011 10:51:52 +0000 (10:51 +0000)]
(trunk gtk) more heap pruning: give DetailsImpl an internal GString buffer so that it doesn't have to create and free so many temporary strings
Jordan Lee [Tue, 12 Apr 2011 10:04:05 +0000 (10:04 +0000)]
(trunk gtk) more heap pruning: give torrent-cell-renderer an internal GString buffer so that we don't have to create & free so many short-term strings
Mitchell Livingston [Mon, 11 Apr 2011 22:21:55 +0000 (22:21 +0000)]
update French localization for 2.30
Jordan Lee [Mon, 11 Apr 2011 19:44:16 +0000 (19:44 +0000)]
(trunk libT) fix 2.30b1 memory corruption bug when editing trackers.
The problem was that the new number of trackers was not being kept and the old count was retained. So if the count changed, tr_torrentTrackers() could return dangling pointers to the caller.
Jordan Lee [Mon, 11 Apr 2011 16:27:41 +0000 (16:27 +0000)]
(trunk gtk) minor janitorial: const correctness in tr-core's compare_by_name()
Mitchell Livingston [Mon, 11 Apr 2011 02:44:05 +0000 (02:44 +0000)]
#4182 Remember filter search text between runs
Mitchell Livingston [Sun, 10 Apr 2011 16:26:55 +0000 (16:26 +0000)]
#4175 fix typo
Jordan Lee [Sun, 10 Apr 2011 14:15:52 +0000 (14:15 +0000)]
(trunk libT) #4175 "very bizarre and unwieldly logfile in 2.30b2" -- fixed.
Jordan Lee [Sun, 10 Apr 2011 05:27:14 +0000 (05:27 +0000)]
Jordan Lee [Sun, 10 Apr 2011 05:22:18 +0000 (05:22 +0000)]
(trunk libT) remove unneeded assert()ion
Jordan Lee [Sun, 10 Apr 2011 05:21:51 +0000 (05:21 +0000)]
(trunk libT) use a better data struct for the tr_datatype list in peer-io
Jordan Lee [Sun, 10 Apr 2011 04:30:20 +0000 (04:30 +0000)]
(trunk web) #3820 "web ui flicking to selection" -- apply test patch suggested by fx
Jordan Lee [Sun, 10 Apr 2011 03:57:37 +0000 (03:57 +0000)]
(trunk libT) #4175 "very bizarre and unwieldy logfile in 2.30b2" -- another test commit for gunzip :)
Jordan Lee [Sun, 10 Apr 2011 00:05:18 +0000 (00:05 +0000)]
(trunk libT) #4175 "bizarre and unwieldly logfile in 2.30b2" -- possible fix for gunzip to test
Mitchell Livingston [Sat, 9 Apr 2011 14:38:48 +0000 (14:38 +0000)]
bump version number to 2.30b2
Jordan Lee [Sat, 9 Apr 2011 14:36:33 +0000 (14:36 +0000)]
(trunk libT) #4173 "crashing with r12315 in Debian" -- apply patch from comment:8 for testing in 2.30b2
Mitchell Livingston [Thu, 7 Apr 2011 23:29:05 +0000 (23:29 +0000)]
catch invalid addresses when loading tracker favicons
Jordan Lee [Thu, 7 Apr 2011 20:15:49 +0000 (20:15 +0000)]
(trunk libT) in peer-mgr's closeBadPeers() function, don't bother doing any of the setup/teardown calculations if the peer array is empty.
Jordan Lee [Thu, 7 Apr 2011 20:00:26 +0000 (20:00 +0000)]
(trunk libT) use get_next_scrape_time() inside the scrape error handler.
get_next_scrape_time() was introduced in r12297. The rationale is that by rounding all scrape times to their nearest 10th second, they will tend to occur in batches and improve multiscrape.
Jordan Lee [Thu, 7 Apr 2011 19:54:30 +0000 (19:54 +0000)]
(trunk libT) #3931 "'Announce is Queued' but torrent doesn't announce itself to trackers" -- add more debugging information for the next announce interval when an announce error is encountered, as requested by Sardok in comment:70 of #3931
Jordan Lee [Thu, 7 Apr 2011 06:56:31 +0000 (06:56 +0000)]
(trunk libT) #4173 "Crashing with r12315 in Debian" -- possible fix?
Jordan Lee [Thu, 7 Apr 2011 06:54:03 +0000 (06:54 +0000)]
(trunk libT) trivial commit fixing typo in the comments from r12297
Jordan Lee [Thu, 7 Apr 2011 04:29:37 +0000 (04:29 +0000)]
(trunk gtk) more heap pruning: use a GStringChunk for the collated torrent names in tr-core.c
Mitchell Livingston [Thu, 7 Apr 2011 00:56:28 +0000 (00:56 +0000)]
add an extra check when generating status strings in a TorrentCell
Jordan Lee [Wed, 6 Apr 2011 23:27:11 +0000 (23:27 +0000)]
(trunk libT) more heap pruning: avoid four unnecessary malloc() + free() calls per tr_peer.
This commit also changes tr_recentHistory from being a general-purpose tool to being a little more hardcoded for the only purpose it's used, in tr_peerMgr. If its files (history.[ch]) don't find any other "customers" in libtransmission, eventually it should be demoted to being a private helper class inside of peer-mgr.c and have the history.[ch] files removed from the build.
Mitchell Livingston [Wed, 6 Apr 2011 22:06:53 +0000 (22:06 +0000)]
update European Portuguese localization for 2.3
Jordan Lee [Wed, 6 Apr 2011 04:55:57 +0000 (04:55 +0000)]
(trunk libT) remove an assertion from bitfield that doesn't always need to be true
Mitchell Livingston [Tue, 5 Apr 2011 23:03:33 +0000 (23:03 +0000)]
when removing trackers, handle hidden duplicates
Jordan Lee [Tue, 5 Apr 2011 22:21:18 +0000 (22:21 +0000)]
(trunk libT) fix ABR error when parsing a URL with no path and no trailing slash after the host. Error reported by livings124
Jordan Lee [Tue, 5 Apr 2011 21:14:44 +0000 (21:14 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary malloc() + free() when reading PadD during an outbound encrypted handshake
Jordan Lee [Tue, 5 Apr 2011 18:16:21 +0000 (18:16 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary malloc() + strcmp() + free() when parsing the initial handshake string from a peer
Jordan Lee [Tue, 5 Apr 2011 17:00:38 +0000 (17:00 +0000)]
(trunk gtk) removed the unused MC_NAME column from the torrent GtkListStore.
Jordan Lee [Tue, 5 Apr 2011 16:46:13 +0000 (16:46 +0000)]
(trunk libT) when processing errors in peer-io.c's event_read_cb() and tr_peerIoTryRead() functions, don't call tr_net_strerror() unless logging is turned on s.t. the string will be used.
Jordan Lee [Tue, 5 Apr 2011 16:34:49 +0000 (16:34 +0000)]
(trunk libT) when processing an error in tr_peerIoTryWrite(), don't call tr_net_strerror() unless logging is turned on s.t. the string will be used.
Jordan Lee [Tue, 5 Apr 2011 16:16:06 +0000 (16:16 +0000)]
(trunk gtk) use GQuarks instead of strings for keys in tr-icon and tr-window
Jordan Lee [Tue, 5 Apr 2011 15:59:41 +0000 (15:59 +0000)]
(trunk gtk) use GQuarks instead of strings for keys in the filterbar's key/value pairs
Jordan Lee [Tue, 5 Apr 2011 15:41:51 +0000 (15:41 +0000)]
(trunk gtk) more heap pruning: in the main window's torrent list, only update the case-insensitive "collated name" of a torrent when the torrent's metadata changes (such as when a magnet link's metadata finishes downloading).
Jordan Lee [Tue, 5 Apr 2011 01:36:37 +0000 (01:36 +0000)]
(trunk libT) more heap pruning: use a hash, rather than an allocated string in tr-core when watching for a torrent's tracker list to change
Jordan Lee [Tue, 5 Apr 2011 00:59:49 +0000 (00:59 +0000)]
(trunk libT) oops, r12313 committed the wrong version of list.c
Jordan Lee [Tue, 5 Apr 2011 00:56:56 +0000 (00:56 +0000)]
(trunk libT) keep a pool of reusable tr_list nodes
Jordan Lee [Tue, 5 Apr 2011 00:55:09 +0000 (00:55 +0000)]
(trunk libT) Use tr_strndup() instead of tr_strdup() in tr_urlParse() to avoid a couple of strlen() calls
Jordan Lee [Tue, 5 Apr 2011 00:53:57 +0000 (00:53 +0000)]
(trunk libT) use alloca() for allocating the block array in updateBlockRequests()
Jordan Lee [Tue, 5 Apr 2011 00:29:42 +0000 (00:29 +0000)]
(trunk libT) #4165 "crash on startup introduced in r12262" -- experimental commit
Jordan Lee [Tue, 5 Apr 2011 00:26:31 +0000 (00:26 +0000)]
(trunk libT) remove redundant assert()s
Jordan Lee [Tue, 5 Apr 2011 00:24:25 +0000 (00:24 +0000)]
(trunk libT) remove unnecessary memmove()s from rechokeDownloads()
Jordan Lee [Mon, 4 Apr 2011 21:42:04 +0000 (21:42 +0000)]
remove unneeded include
Jordan Lee [Mon, 4 Apr 2011 16:54:09 +0000 (16:54 +0000)]
(trunk gtk) more heap pruning: avoid unnecessary malloc() + free() calls in gtr_get_host_from_url()
Jordan Lee [Mon, 4 Apr 2011 16:53:15 +0000 (16:53 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary malloc() + free() when encrypting outbound messages
Jordan Lee [Mon, 4 Apr 2011 05:15:54 +0000 (05:15 +0000)]
(trunk libT) avoid an unnecessary malloc() + free() call when we finish downloading a block.
Pre-libevent2, this free() was useful in helping keep the peer's incoming piece data buffer from growing too large because that could be a significant amount of wasted space given enough peers. However now that we're using the libevent2 code, that piece data buffer gets handed off to the block cache, so most of the time we're freeing an evbuffer that doesn't have any inernal chains allocated anyway.
Jordan Lee [Mon, 4 Apr 2011 04:45:41 +0000 (04:45 +0000)]
(trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy()
Mitchell Livingston [Sun, 3 Apr 2011 03:25:13 +0000 (03:25 +0000)]
small cleanup when determining if two announce URLs differ only by scheme
Jordan Lee [Sat, 2 Apr 2011 23:33:51 +0000 (23:33 +0000)]
(trunk libT) fix UMR bug reported by wereHamster
Juliusz Chroboczek [Sat, 2 Apr 2011 16:43:17 +0000 (16:43 +0000)]
Reinstate including tcp.h in net.c.
Removed in r12225, this broke netSetCongestionControl.
Jordan Lee [Sat, 2 Apr 2011 08:35:47 +0000 (08:35 +0000)]
(trunk libT) don't bother calling rechokeUploads() and rechokeDownloads() on torrents which have no peers.
Jordan Lee [Sat, 2 Apr 2011 07:46:37 +0000 (07:46 +0000)]
(trunk libT) #4138 "use stdbool.h instead of tr_bool" -- fix watch.c error reported by zebulon501 in trac. :)
Jordan Lee [Sat, 2 Apr 2011 07:44:19 +0000 (07:44 +0000)]
(trunk libT) better multiscrape
Jordan Lee [Sat, 2 Apr 2011 07:36:34 +0000 (07:36 +0000)]
(trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only requires one.
Jordan Lee [Sat, 2 Apr 2011 03:31:41 +0000 (03:31 +0000)]
(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
Jordan Lee [Fri, 1 Apr 2011 04:33:35 +0000 (04:33 +0000)]
(trunk libT) simplify tr_torrent's hasAnyLocalData() to be more readable, and also to avoid yet another unnecessary malloc() and free()
Jordan Lee [Fri, 1 Apr 2011 04:13:51 +0000 (04:13 +0000)]
(trunk libT) more malloc pruning. *yawn*
tr_metainfoGetBasename(): avoid an unnecessary malloc() + free()
getannounce(): avoid an unnecessary malloc() + free() per each tracker
Jordan Lee [Fri, 1 Apr 2011 03:23:55 +0000 (03:23 +0000)]
(trunk libT) avoid an unnecessary malloc/free in tr_urlIsValidTracker() and tr_urlIsValid()
Jordan Lee [Fri, 1 Apr 2011 03:13:44 +0000 (03:13 +0000)]
(trunk libT) copyediting in resume.c
Jordan Lee [Fri, 1 Apr 2011 03:09:24 +0000 (03:09 +0000)]
(trunk libT) streamline parsing the metainfo's file list
Jordan Lee [Fri, 1 Apr 2011 03:07:43 +0000 (03:07 +0000)]
(trunk libT) since the JSON parser gives us the string's length, we can call tr_strndup() instead of tr_strdup()
Jordan Lee [Fri, 1 Apr 2011 03:06:30 +0000 (03:06 +0000)]
(trunk gtk) remove tr-torrent.c from POTFILES.in
Mitchell Livingston [Fri, 1 Apr 2011 01:21:59 +0000 (01:21 +0000)]
update to 2.30b1
Mitchell Livingston [Thu, 31 Mar 2011 21:52:30 +0000 (21:52 +0000)]
update jQuery to 1.5.2
Mitchell Livingston [Thu, 31 Mar 2011 21:43:53 +0000 (21:43 +0000)]
update German localization for 2.3
Jordan Lee [Thu, 31 Mar 2011 20:26:43 +0000 (20:26 +0000)]
(trunk libT) announcer.c: fold the tiers and trackers into fewer mallocs/frees
Jordan Lee [Thu, 31 Mar 2011 16:41:52 +0000 (16:41 +0000)]
(trunk libT) copyediting: peer-io's "EncryptionMode" type had a name too similar to tr_encryption_mode... rename it to reduce potential confusion
Jordan Lee [Thu, 31 Mar 2011 16:08:31 +0000 (16:08 +0000)]
(trunk libT) save 48 bytes per tr_torrent object. whoo!
Jordan Lee [Thu, 31 Mar 2011 14:53:22 +0000 (14:53 +0000)]
(trunk libT) use aggregation for the tr_bandwidth objects owned by tr_session and tr_torrent
Mitchell Livingston [Thu, 31 Mar 2011 12:33:26 +0000 (12:33 +0000)]
update Russian localization to 2.30
Jordan Lee [Thu, 31 Mar 2011 05:06:19 +0000 (05:06 +0000)]
(trunk libT) fix never-executed code branch detected by clang static analyzer
Jordan Lee [Thu, 31 Mar 2011 04:58:38 +0000 (04:58 +0000)]
(trunk gtk) remove "dead nested assignment" wart detected by clang static analyzer
Jordan Lee [Thu, 31 Mar 2011 04:33:49 +0000 (04:33 +0000)]
(trunk libT) remove dead logic branch detected by clang static analyzer
Jordan Lee [Thu, 31 Mar 2011 04:24:57 +0000 (04:24 +0000)]
(trunk libT) fix "dangerous pointer arithmetic" warning detected by clang static analyzer
Jordan Lee [Thu, 31 Mar 2011 04:03:07 +0000 (04:03 +0000)]
(trunk libT) fix minor dead store detected by clang static analyzer
Jordan Lee [Thu, 31 Mar 2011 04:01:55 +0000 (04:01 +0000)]
(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().
Jordan Lee [Thu, 31 Mar 2011 03:59:44 +0000 (03:59 +0000)]
(trunk libT) fix potential UMR detected by clang static analyzer: maxPeers could be uninitialized in some pathological logic branches
Jordan Lee [Thu, 31 Mar 2011 03:37:50 +0000 (03:37 +0000)]
(trunk libT) fix potential null pointer dereference in announcer.c
Jordan Lee [Thu, 31 Mar 2011 03:37:24 +0000 (03:37 +0000)]
(trunk libT) fix file descriptor leak in tr-dht.c
Jordan Lee [Wed, 30 Mar 2011 23:54:39 +0000 (23:54 +0000)]
(trunk libT) #4153 "Protect against non-monotonic time in libutp" -- try again.
Jordan Lee [Wed, 30 Mar 2011 23:50:25 +0000 (23:50 +0000)]
(trunk libT) #4153 "Protect against non-monotonic time in libutp" -- another attempt at getting it to compile on win32
Jordan Lee [Wed, 30 Mar 2011 23:26:00 +0000 (23:26 +0000)]
(trunk libT) #4153 "Protect against non-monotonic time in libutp" -- move UTP_GetMilliseconds() and UTP_GetMicroseconds() outside of the if-not-windows ifdef section. Based on feedback from rb07 in ticket comment 5
Jordan Lee [Wed, 30 Mar 2011 23:11:10 +0000 (23:11 +0000)]
(trunk daemon) fix minor text formatting bug when the ETA is being shown in seconds
Jordan Lee [Wed, 30 Mar 2011 21:19:14 +0000 (21:19 +0000)]
(trunk libT) #4157 "'transmission-remote -si' doesn't show alternate download speeds correctly" -- fixed.
Jordan Lee [Wed, 30 Mar 2011 16:24:45 +0000 (16:24 +0000)]
(trunk daemon) #4156 "request: transmission-remote --session-info report whether µTP is enabled" -- added.
Jordan Lee [Wed, 30 Mar 2011 04:23:20 +0000 (04:23 +0000)]
(trunk libT) merge tr_bitfieldTestFast() and tr_bitfieldTest()
Jordan Lee [Wed, 30 Mar 2011 04:14:57 +0000 (04:14 +0000)]
(trunk libT) handle situations where we don't know the bitfield's upper bound in advance. This comes up sometimes with magnet links.
Juliusz Chroboczek [Wed, 30 Mar 2011 00:29:07 +0000 (00:29 +0000)]
Don't explicitly protect against non-monotonic gettimeofday.
Since we're now protecting against non-monotonic time unconditionally,
there's no need for additional protection in the gettimeofday case.
Juliusz Chroboczek [Wed, 30 Mar 2011 00:14:41 +0000 (00:14 +0000)]
Protect against monotonic time being non-monotonic, take 2.
This is a better fix, suggested by ghazel.
Juliusz Chroboczek [Tue, 29 Mar 2011 23:15:38 +0000 (23:15 +0000)]
Protect against monotonic time being non-monotonic.
Within utp.cpp, there's a bunch of assertions that will cause us
to crash if monotonic time isn't. While I have no idea about Windows,
under Unix we use real time instead of monotonic time if POSIX clocks
are not available, and real time can be stepped backwards. Since the
protection is cheap, we perform it on all platforms.
Jordan Lee [Tue, 29 Mar 2011 22:02:27 +0000 (22:02 +0000)]
(trunk libT) fix endgame detection bug introduced in r12248
Jordan Lee [Tue, 29 Mar 2011 21:10:20 +0000 (21:10 +0000)]
(trunk libT) fix a crasher introduced yesterday in r12248
Jordan Lee [Tue, 29 Mar 2011 21:09:37 +0000 (21:09 +0000)]
(trunk libT) safeguard against a minor memory leak if io->sokcet couldn't be opened.
Jordan Lee [Tue, 29 Mar 2011 16:39:30 +0000 (16:39 +0000)]
(trunk libT) fix bitfield.c assertion failure reported by Rolcol