Charles Kerr
|
4723b4a6e4
|
(trunk libT) make TR_PREALLOCATE_SPARSE the default value -- too many people are asking why Transmisson "freezes" when it starts downloading a torrent. In the future it would be better to frame the choice between FAST and FULL instead of SPARSE and FULL. this should be revisited later when glibc's fallocate() is widely available and ext4 is more common.
|
2009-07-03 22:22:01 +00:00 |
Charles Kerr
|
1104a4bf4d
|
(trunk libT) dead code removal
|
2009-07-03 19:45:29 +00:00 |
Charles Kerr
|
8970fb14cb
|
(trunk libT) better version of r8775
|
2009-07-03 14:37:27 +00:00 |
Charles Kerr
|
056bba353a
|
(trunk libT) #2263: Night of the Living Dead (removed and deleted torrents keep coming back)
|
2009-07-03 14:31:31 +00:00 |
Charles Kerr
|
48b460c0c3
|
(trunk libT) #2261: Save memory by not initializing the RPC server's zlib stream until it's needed
|
2009-07-02 20:20:00 +00:00 |
Charles Kerr
|
5258ac0a83
|
(trunk libT) #2234: add support for setting the file creation umask
|
2009-07-02 02:37:49 +00:00 |
Charles Kerr
|
1e6902a328
|
(trunk libT) fix r8770 oops
|
2009-07-02 02:04:34 +00:00 |
Charles Kerr
|
a8619eb645
|
(trunk libT) #529: Time remaining for downloads is unreliable
|
2009-07-02 01:50:07 +00:00 |
Charles Kerr
|
32aeae1388
|
(trunk libT) #2252: Folders stay in the original folder after using "Set location" and moving folder(torrent)
|
2009-07-01 15:30:17 +00:00 |
Charles Kerr
|
24746cff7f
|
(trunk libT) minor #include futzing
|
2009-07-01 14:58:57 +00:00 |
Charles Kerr
|
d6ed808f9c
|
(trunk, libT) #2253: I love you, valgrind pt 3
|
2009-07-01 00:46:30 +00:00 |
Charles Kerr
|
58ba65f55b
|
(trunk, gtk/qt) use Monsoon's strings for encryption preferences and Deluge's system tray tooltip.
|
2009-06-30 18:08:50 +00:00 |
Charles Kerr
|
07046a26b2
|
(trunk libT) inline some one-liners
|
2009-06-30 16:40:34 +00:00 |
Charles Kerr
|
1980bcc988
|
(trunk libT) I love you, massif pt. 2
|
2009-06-25 17:25:51 +00:00 |
Charles Kerr
|
db5b508ca6
|
(trunk libT) I love you, massif
|
2009-06-25 04:02:07 +00:00 |
Charles Kerr
|
ffc54a8c7e
|
(trunk) #2245: defined macros
|
2009-06-25 01:57:31 +00:00 |
Charles Kerr
|
7274c24e44
|
(trunk libT) #2244: Default upload slots too high
|
2009-06-25 00:24:30 +00:00 |
Charles Kerr
|
ae8783d6e9
|
(trunk libT) this is so minor I hesitate to commit it, but... save 16 bytes per torrent by more efficient alignment of tr_info's fields :)
|
2009-06-24 04:36:18 +00:00 |
Charles Kerr
|
8d52cc2adb
|
(trunk libT) scrimp & save a few more bytes per each peer
|
2009-06-24 04:14:39 +00:00 |
Charles Kerr
|
5e208a2909
|
(trunk libT) save some memory, and an unnecessary malloc/free, for each torrent
|
2009-06-24 03:54:11 +00:00 |
Charles Kerr
|
057638c4e9
|
(trunk libT) #2240: Cryptic information messages on startup
|
2009-06-23 14:43:09 +00:00 |
Charles Kerr
|
1ae47c697d
|
(trunk) silence some minor gcc warnings
|
2009-06-23 14:15:23 +00:00 |
Charles Kerr
|
39330501e4
|
(trunk) #2222: Make DHT support a compile-time option, enabled by default
|
2009-06-21 08:57:26 +00:00 |
Charles Kerr
|
587ddb48f0
|
(trunk libT) #2228: transmission should learn to truncate files on updating torrents
|
2009-06-21 07:53:51 +00:00 |
Charles Kerr
|
ef9896e223
|
(trunk libT) more efficient closing of a torrent's open files
|
2009-06-21 07:36:51 +00:00 |
Charles Kerr
|
1bc1b16da7
|
(trunk libtransmission) #2227: tr_metaInfoBuilderCreate(topFile) creates invalid .torrent files when topFile ends with a '/'
|
2009-06-20 00:39:30 +00:00 |
Charles Kerr
|
c859f06742
|
(trunk) autoconf/automake: move libdht.a into a DHT_LIBS variable
|
2009-06-19 23:50:09 +00:00 |
Charles Kerr
|
19a8b6193c
|
(trunk libT) #2225: support supportcypto and requirecrypto flags in http tracker announces
|
2009-06-18 20:33:04 +00:00 |
Charles Kerr
|
dbc9c0fb7d
|
(trunk libT) tweak benc dict preallocation in resume.c as suggested by Elbandi
|
2009-06-17 22:07:16 +00:00 |
Charles Kerr
|
683073855e
|
(trunk libT) revert most of r8693 as a quick fix for a possible alignment issue on a NAS
|
2009-06-16 19:31:17 +00:00 |
Charles Kerr
|
45f1316bce
|
(trunk libT) #2196: add a fallback implementation of preallocateFileFull() in case the os-specific and fs-specific approaches don't work.
|
2009-06-16 17:10:47 +00:00 |
Erick Turnquist
|
1c7ac5bea0
|
(trunk libT) fix "dereferencing pointer does brea strict-aliasing rules" warning
|
2009-06-15 05:16:36 +00:00 |
Charles Kerr
|
1be7f51b3d
|
(trunk libT) simplify the evtimer / struct timeval code a little
|
2009-06-15 03:24:40 +00:00 |
Charles Kerr
|
0380906aa6
|
(trunk libT) a minor but nice twofer: reduce per-peer memory overhead a little bit, and also avoid an extra malloc/free per peer connection
|
2009-06-15 02:22:41 +00:00 |
Charles Kerr
|
8e676171d4
|
(trunk libT) move tr_bitfield into its own, package-visible source files. this may break the mac build temporarily until the xcode file gets synced
|
2009-06-15 00:11:06 +00:00 |
Charles Kerr
|
deb679dab0
|
(trunk libT) avoid an extra per-torrent malloc/free by aggregating its tr_bandwidth into its struct
|
2009-06-14 22:19:19 +00:00 |
Charles Kerr
|
813640d6f3
|
(trunk libT) silence a gcc 4.4 warning: "dereferencing type-punned pointer will break strict-aliasing rules"
|
2009-06-14 19:17:10 +00:00 |
Charles Kerr
|
e082548030
|
(trunk) remove the test for fallocate(), since we used posix_fallocate() as a fallback anyway. <http://www.lucas-nussbaum.net/blog/?p=332> says: "Glibc does have posix_fallocate(), which implements the POSIX interface. posix_fallocate() is wired to use the fallocate system call, for sufficiently modern versions of glibc."
|
2009-06-14 18:32:09 +00:00 |
Charles Kerr
|
73f3c3ad8c
|
(trunk) replace LIBEVENT_CPPFLAGS with LIBEVENT_CFLAGS
|
2009-06-14 16:51:22 +00:00 |
Charles Kerr
|
13cac341cd
|
(trunk libT) avoid an extra malloc/free when sending the opening handshake message
|
2009-06-14 14:39:51 +00:00 |
Charles Kerr
|
837186679d
|
(trunk libT) avoid an extra malloc/free when deriving the scrape URL
|
2009-06-14 14:23:43 +00:00 |
Charles Kerr
|
d8360f9a26
|
(trunk libT) avoid an unnecessary malloc/free in tr_strdup_printf()
|
2009-06-14 01:01:46 +00:00 |
Charles Kerr
|
ef21704b58
|
(trunk libT) remove the last calls to tr_getBuffer() and tr_releaseBuffer()
|
2009-06-14 01:00:36 +00:00 |
Charles Kerr
|
6755041894
|
(trunk) #1864: Tracker not found (404) when a check of local file is done.
|
2009-06-13 17:11:46 +00:00 |
Charles Kerr
|
a2b9fcc592
|
(trunk libT) possible fix for #2078: Assertion failed: (tv->tv_usec >= 0)
|
2009-06-12 23:01:35 +00:00 |
Charles Kerr
|
8f1d036fa3
|
(trunk libT) make sure tr_sessionSetDHTEnabled() doesn't make libevent calls outside of the libevent thread
|
2009-06-12 22:17:59 +00:00 |
Charles Kerr
|
6f40f83a1f
|
(trunk) #2204: wrong variable used in rpc-impl for webseedCount
|
2009-06-12 12:10:09 +00:00 |
Charles Kerr
|
4c60377168
|
(trunk) fix oops
|
2009-06-11 22:46:33 +00:00 |
Charles Kerr
|
17cb7945ed
|
(trunk libT) #2199: DHT should not announce stopped torrents
|
2009-06-11 21:42:59 +00:00 |
Charles Kerr
|
0dd0a0bbd7
|
(trunk libT) #2195: 1.71 assertion: tr_peerIoSupportsFEXT( msgs->peer->io ) peer-msgs.c:265
|
2009-06-10 13:46:46 +00:00 |
Charles Kerr
|
101459ef46
|
(trunk) "assert( eh->die );" isn't shedding any light on the problem but it is pissing off many users, so let's remove it.
|
2009-06-09 22:02:58 +00:00 |
Charles Kerr
|
389db06d08
|
(trunk) remove a little more newly-dead code
|
2009-06-09 21:59:25 +00:00 |
Charles Kerr
|
47a64975b7
|
(trunk libT) #2192: tr_session's hashstring-to-filename code reinvents the wheel
|
2009-06-09 21:57:11 +00:00 |
Charles Kerr
|
dfc6e904d0
|
(trunk libT) fix copy/paste error in tr_fdAccept()
|
2009-06-08 14:50:56 +00:00 |
Charles Kerr
|
6a568403d2
|
(trunk libT) #2179: memory allocation in benc could be more efficient
|
2009-06-07 17:54:28 +00:00 |
Charles Kerr
|
38a032b1bf
|
(trunk libT) possible fix for benc/json saving issues reported in 1.70. This is a guess from rb07's post in the forums about bencode.c, and from John Clay's comments in irc
|
2009-06-06 19:30:32 +00:00 |
Charles Kerr
|
d0ae679a2f
|
(trunk) minor commit: sync the .h licenses with their counterpart .c licenses
|
2009-06-06 17:39:04 +00:00 |
Charles Kerr
|
3f03f2e0c3
|
(trunk libT) #2151: possible fix for "Unusually high CPU usage in latest builds" issue
|
2009-06-06 16:19:34 +00:00 |
Charles Kerr
|
ab56a2f7f7
|
(trunk libT) fix potential permissions headache when saving json/benc files
|
2009-06-04 15:52:54 +00:00 |
Charles Kerr
|
5898c8b276
|
(trunk libT) add a debugging message to r8609 in case we ever have to go back to the bad old days of TR_DEBUG_FD
|
2009-06-04 15:04:34 +00:00 |
Charles Kerr
|
cc4cd19903
|
(trunk libT) under very rare circumstances we wouldn't send a REJ message even if the protocol required it. also, avoid an unnecessary memcpy(). Thanks to geirha and Lacrocivious for helping test & confirm the fix.
|
2009-06-04 14:59:17 +00:00 |
Charles Kerr
|
4c02edf6d4
|
(trunk libT) fix a minor tr-dht memory leak found by valgrind.
|
2009-06-03 23:42:13 +00:00 |
Charles Kerr
|
8fa568d20b
|
(trunk libT) lessen evbuffer memory bloat when we have a lot of simultaneous peers
|
2009-06-03 22:52:08 +00:00 |
Charles Kerr
|
b6f3b15f0a
|
(trunk libT) handle windows when saving json files; use evbuffer_write() more safely
|
2009-06-03 21:08:54 +00:00 |
Charles Kerr
|
ca229e5482
|
(trunk libT) #2160: fix 1.60 error when setting file wanted/not-wanted flags when adding a new torrent via RPC. reported by anf6
|
2009-06-03 16:59:32 +00:00 |
Charles Kerr
|
8e6eee683f
|
(trunk) on non-mac platforms, try not building our own copy of libevent 1.4.x
|
2009-06-03 15:47:08 +00:00 |
Charles Kerr
|
a9d99c482a
|
(trunk libT) dead code removal
|
2009-06-03 04:56:53 +00:00 |
Charles Kerr
|
9513fcbe66
|
(trunk libT) add a bunch of comments denoting where the libevent 2.0 changes will go
|
2009-06-02 18:21:23 +00:00 |
Charles Kerr
|
9238fb0299
|
(trunk) #2131: clean up benc read/write API
|
2009-06-02 01:48:48 +00:00 |
Charles Kerr
|
9bfec90e43
|
(trunk libT) avoid about 75% of the strdup/malloc/frees in benc by using a union of char* and a small string buffer, and using the buffer if the string is small enough
|
2009-06-01 22:15:50 +00:00 |
Charles Kerr
|
7f85090587
|
(trunk) add a "source" argument to tr_jsonParse() so that if there's an error we can log the filename, or that it came from rpc, etc.
|
2009-06-01 18:57:37 +00:00 |
Charles Kerr
|
6508dc3a3d
|
(trunk libT) #2146: Incorrect maintenance of dhtAnnounceInProgress
|
2009-06-01 18:24:30 +00:00 |
Charles Kerr
|
f538b08fb3
|
(trunk libT) tracker.c was using tr_benc's private fields
|
2009-06-01 18:12:36 +00:00 |
Charles Kerr
|
38ffac8bf6
|
(trunk libT) fix bug that misparsed the tracker's min_request_interval
|
2009-06-01 18:06:35 +00:00 |
Charles Kerr
|
ee0771c751
|
(trunk) "perl -r" wasn't portable to os x
|
2009-06-01 00:43:01 +00:00 |
Charles Kerr
|
ea93eab02d
|
(trunk libT) on platforms that support it, use POSIX_FADV_SEQUENTIAL instead of POSIX_FADV_RANDOM. (http://trac.transmissionbt.com/ticket/1521#comment:25)
|
2009-05-31 21:20:49 +00:00 |
Charles Kerr
|
0834c33445
|
(trunk) yet another stab at building version.h portably
|
2009-05-31 20:22:47 +00:00 |
Charles Kerr
|
d4aaa3d320
|
(trunk libT) r8563 weak.
|
2009-05-31 00:27:19 +00:00 |
Charles Kerr
|
62109971c5
|
(trunk libT) fix two trivial compiler warnings from r8562
|
2009-05-30 21:59:09 +00:00 |
Charles Kerr
|
73cef0d680
|
(trunk libT) dead code removal
|
2009-05-30 21:45:40 +00:00 |
Charles Kerr
|
d1b36fee6f
|
(trunk libT) a little bit of early futureproofing for libevent 2.0
|
2009-05-29 20:52:42 +00:00 |
Charles Kerr
|
452cb27f9e
|
(trunk libT) re-start work on making libT doxygen friendly. still a long ways to go on this.
|
2009-05-29 19:17:12 +00:00 |
Mitchell Livingston
|
3f89538e28
|
when adding a torrent, set the default torrent speed limit to the global speed limit (the limit will still be disabled)
|
2009-05-28 22:05:21 +00:00 |
Charles Kerr
|
d0a57ce9d2
|
(trunk libT) version.h.in was doubled up
|
2009-05-28 17:56:58 +00:00 |
Charles Kerr
|
691eb0db76
|
(trunk libT) the pre-1.70 builds were using the wrong key for ipv4/ipv6 bind addresses in settings.json
|
2009-05-28 13:24:35 +00:00 |
Charles Kerr
|
cd36431b0c
|
(trunk libT) fix off-by-one in tr_ssha1() reported by lightix @ http://forum.transmissionbt.com/viewtopic.php?f=2&t=7684#p37556
|
2009-05-28 13:02:03 +00:00 |
Charles Kerr
|
8504baf7aa
|
(trunk libT) #2022: Torrentbar shows wrong speeds: Webseed-peers aren't taken into account
|
2009-05-28 02:28:14 +00:00 |
Charles Kerr
|
2a157ca600
|
(trunk) #2125: Get svn revision number with autoconf rather than make
|
2009-05-28 02:15:53 +00:00 |
Charles Kerr
|
49885aae05
|
(trunk libT) #2120: Typo in DHT support: incorrect test when bootstrapping
|
2009-05-27 17:35:49 +00:00 |
Charles Kerr
|
bda5a11eb4
|
(trunk libT) probable fix for #2111: session-set causes crash on second attempt
|
2009-05-26 20:52:08 +00:00 |
Charles Kerr
|
342ea302bc
|
(trunk libT) version.h build issue that manifested itself as "tr-dht.c:156: error: expected expression before ‘>>’ token". Thanks to geirha for tracking down the problem and contributing a fix
|
2009-05-24 13:48:55 +00:00 |
Charles Kerr
|
5f95f7bdf7
|
(trunk libT) #2107: Port randomization should use only private ports (49152-65535)
|
2009-05-24 01:51:53 +00:00 |
Charles Kerr
|
72fe1b7bea
|
(trunk libT) try to smoke out the cause of #1992
|
2009-05-22 19:32:49 +00:00 |
Charles Kerr
|
7c6fbfb80f
|
(trunk libT) fix a couple of dead assignments, and a possible null pointer dereference, found by clang
|
2009-05-22 19:03:00 +00:00 |
Charles Kerr
|
66da41e517
|
(trunk) dht seems to be crashing in bcmp() on the mac, so I suspect the homegrown implementation of memmem() is buggy... test this out by replacing memmem()'s implementation
|
2009-05-22 05:35:51 +00:00 |
Charles Kerr
|
690b029c52
|
(trunk libT) take out the test scaffolding for the tr_torrentFiles() rewrite
|
2009-05-22 01:21:56 +00:00 |
Charles Kerr
|
a2480049d5
|
tweak the assertion to track down Rolcol's crash
|
2009-05-21 22:49:59 +00:00 |
Charles Kerr
|
6e089ef095
|
(trunk libT) #1992: could it really be this easy? if it is, wereHamster deserves the credit. if not, at least it was easy
|
2009-05-21 22:26:18 +00:00 |
Charles Kerr
|
59e4a61100
|
(trunk libT) since the metainfo hash string lookup table is expensive to build, and since only the mac client uses it, let's not build it until some non-libT calls tr_ctorSetMetainfoFromHash().
|
2009-05-21 19:54:59 +00:00 |
Charles Kerr
|
b1f675eb83
|
(trunk libT) smoke out any errors in the tr_torrentFiles() rewrite
|
2009-05-21 18:37:55 +00:00 |