Mitchell Livingston
51a3b94ed1
when checking client id, look for Transmission first
2009-05-10 00:14:24 +00:00
Charles Kerr
7f08a87969
(trunk libT) #2046 : fix JSON bug when parsing floating point numbers in some locales
2009-05-09 18:01:29 +00:00
Charles Kerr
f9aa317998
(trunk) improvements to peer-mgr.c. also, new temporary assert()s to help test them.
2009-05-09 06:08:21 +00:00
Charles Kerr
54b7f9ccab
(trunk libT) #2030 : revert false alarm r8361 as per this suggestion http://trac.transmissionbt.com/ticket/2030#comment:45
2009-05-08 20:52:12 +00:00
Charles Kerr
ff3e18f52a
(trunk libT) give a better explanation of what third-party apps need to do
2009-05-08 18:07:30 +00:00
Charles Kerr
122a318d8f
(trunk libT) super-anal: 1024 was overkill here.
2009-05-08 17:30:14 +00:00
Charles Kerr
0209b783eb
(trunk) #2031 : Unable to select torrent by hash
2009-05-08 17:24:16 +00:00
Charles Kerr
827c7829aa
(trunk libT) don't rely just on errno to tell if tr_loadFile() succeeded. xref: http://trac.transmissionbt.com/ticket/2030?replyto=38#comment:38
2009-05-08 17:04:12 +00:00
Charles Kerr
0d5cb0fa5a
(trunk libT) #2043 : allow static files served by rpc-server to be cached
2009-05-08 16:41:32 +00:00
Charles Kerr
6559fbbd16
(trunk) support an X-Transmission-Session-Id header in the RPC server. Yesterday's approach of including the session_id in posted forms -- which is a typical approach -- isn't sufficient for Transmission, since it also allows remote access via JSON/RPC. (part 1 of 2. part 2 is kjg's web ui patch)
2009-05-08 14:56:11 +00:00
Charles Kerr
872465d12e
(trunk) revert r8351; it's not a sufficient fix
2009-05-08 14:35:02 +00:00
Charles Kerr
3cc43a7d03
(trunk libT) add a session_id cookie to the rpc server
2009-05-08 02:37:46 +00:00
Charles Kerr
a0597ec8fb
(trunk libT) clean up the debugging messages added to smoke out #2030
2009-05-07 13:03:39 +00:00
Charles Kerr
091abed323
(trunk libT) do for tr_close_file() what r8348 did for tr_open_file_for_scanning()
2009-05-07 11:54:09 +00:00
Charles Kerr
7fcf0a294b
(trunk libT) add some testing messages for #2030... this dumps a lot of junk to the terminal and will be taken out as soon as there's some meaningful feedback in #2030
2009-05-07 01:05:10 +00:00
Charles Kerr
c1a8c7363a
(trunk libT) possible fix for #2030
2009-05-06 19:06:19 +00:00
Charles Kerr
1ee9ce9da7
(trunk libT) remove some oddness in tr_open_file_for_scanning()
2009-05-06 13:33:40 +00:00
Charles Kerr
25e12d9242
(trunk libT) more informative 404 error message when we're unable to load a clutch file
2009-05-05 22:51:12 +00:00
Charles Kerr
acb3b443f7
(trunk libT) silently add a \0 after the end of files read by tr_loadFile() so that text files can be handled directly as ascii strings
2009-04-28 20:42:55 +00:00
Charles Kerr
b52ae72009
(trunk libT) prevent stupid double-close error introduced a few minutes ago :/
2009-04-26 21:00:58 +00:00
Charles Kerr
698aa192aa
(trunk libT) convert tr_open_file_for_scanning() and tr_close_file() to use file descriptors instead of file pointers so that we don't have to mix and match between them
2009-04-26 20:44:18 +00:00
Charles Kerr
75520acd38
(trunk libT) tweak tr_open_file_for_scanning() on OS X for sequential, non-cached reading suitable for verify() and tr_fileLoad()
2009-04-26 19:50:31 +00:00
Charles Kerr
a84a1720a7
(trunk libT) experimental commit for wereHamster
2009-04-26 16:14:47 +00:00
Charles Kerr
13a0a0556c
(trunk libT) make tr_loadFile() use tr_open_file_for_scanning()
2009-04-26 07:59:36 +00:00
Charles Kerr
879f287c9a
(trunk libT) remove debugging message that got committed by accident :/
2009-04-26 00:52:48 +00:00
Charles Kerr
d99438bd1c
(trunk libT) need feedback from Mac users on this change. On Linux, it gets rid of the inactive-memory-grows-during-torrent-verification behavior that's often reported as a bug.
2009-04-26 00:51:51 +00:00
Charles Kerr
114e6b3626
undo r8288
2009-04-25 19:22:27 +00:00
Charles Kerr
94c1b90fe1
(trunk libT) small bandwidth patch from wereHamster
2009-04-25 19:04:48 +00:00
Charles Kerr
7f60d9db17
(trunk gtk) #1473 : Properties dialog should let you edit/view multiple torrents at once
2009-04-24 01:37:04 +00:00
Charles Kerr
577edddaea
(trunk libT) #1993 : Check if UPNP port is still open. Patch from KyleK
2009-04-22 16:00:45 +00:00
Charles Kerr
098658e3ad
(trunk libT) tweak the bencode comments a bit
2009-04-21 16:52:28 +00:00
Charles Kerr
fb587a5b30
(trunk libT) make sure that outbound protocol messages don't get blocked by bandwidth limits
2009-04-21 16:18:51 +00:00
Charles Kerr
e3994f90df
(trunk) #1997 : rpc spec cleanup
2009-04-19 17:02:27 +00:00
Charles Kerr
3c97a10a3e
(trunk libT) add an assertion to tr_torrentStop()
2009-04-19 16:21:27 +00:00
Charles Kerr
03fa0b3e7d
(trunk) experimental support for tr_torrentSetPriority()
2009-04-18 23:17:30 +00:00
Charles Kerr
e2b7b05e55
(trunk) remove obscure macro
2009-04-17 17:34:21 +00:00
Charles Kerr
452fd21d15
(trunk libT) #1996 : Regression: Crash on shutdown when IPv6 is unavailable
2009-04-17 16:49:56 +00:00
Charles Kerr
8387e3abcc
(trunk libT) minor benc cleanups
2009-04-16 21:01:00 +00:00
Charles Kerr
54e2e8ca2f
(trunk libT) avoid unnecessary malloc()s & free()s in tr_utf8clean()
2009-04-16 21:00:48 +00:00
Charles Kerr
cdd779bb2a
(trunk libT) fix long-standing wart of a few public API calls returning strdup'ed char*, rather than a const char* like all the others
2009-04-16 19:14:37 +00:00
Charles Kerr
bee21fb545
(trunk libT) #1992 : try to cleanly destroy the "verify local data" thread on shutdown
2009-04-16 13:10:25 +00:00
Erick Turnquist
9d9e03fdf9
(trunk libT) ? I'm guessing an error in wereHamsters git tree, which I branched, caused this.
2009-04-15 21:10:50 +00:00
Erick Turnquist
2719372bc6
(trunk) #1497 Options to listen on specific network sockets
2009-04-15 21:05:58 +00:00
Charles Kerr
03a7251054
(trunk) make it possible to #include "version.h" without having to add -I${TOP}/libtransmission/ to your CFLAGS
2009-04-13 19:04:21 +00:00
Charles Kerr
221b6903ee
(trunk rpc) bump rpc-version to "5" to denote the new features are present since 1.5x
2009-04-13 15:55:06 +00:00
Charles Kerr
cf552651f7
(trunk libT) in tr_torrentFiles(), avoid some expensive calculations if the torrent is a seed.
2009-04-12 17:31:17 +00:00
Charles Kerr
a2b53f5cbd
(trunk libT) more speed tweaks from valgrind
2009-04-12 14:52:17 +00:00
Charles Kerr
b3813000e9
(trunk libT) add more tests to verify r8214
2009-04-11 15:48:58 +00:00
Charles Kerr
35564b76a4
(trunk libT) startup uses less cpu now on big torrents. another cachegrind discovery
2009-04-11 06:58:14 +00:00
Charles Kerr
f4dde1eb67
(trunk libT) omit some unnecessary tests on the bitfield checks. these seem small, but bitfields are always the top CPU abuser when I profile...
2009-04-11 03:24:36 +00:00
Charles Kerr
f00c152315
(trunk libT) better filtering of maliciously-crafted URLs when serving web interface files
2009-04-10 15:09:31 +00:00
Charles Kerr
2b8f8166bd
(trunk libT) possible IO speedup on OS X based on feedback from ticket #1967
2009-04-10 14:26:01 +00:00
Charles Kerr
2877eddd58
(trunk libT) experimental commit to reduce IO lag during fast downloads
2009-04-10 00:58:26 +00:00
Charles Kerr
81766a8dcb
(trunk libT) another possible fix for #1894 : Crash when download finishes and seed ratio is already met
2009-04-09 14:10:31 +00:00
Charles Kerr
1ab6ce13eb
more benc code simplification
2009-04-09 00:26:53 +00:00
Charles Kerr
ce92e45936
(trunk libT) make libtransmission/makemeta.h C++-safe
2009-04-08 20:57:47 +00:00
Charles Kerr
d1c6956598
(trunk) tr_metaInfoBuilderCreate() doesn't need a tr_session* handle anymore
2009-04-08 18:47:48 +00:00
Charles Kerr
8c372572a2
(trunk libT) faster serialization from tr_benc structs into json and benc formats
2009-04-08 17:25:17 +00:00
Charles Kerr
640c9a25dd
(trunk libT) update the blocklist URL to " http://update.transmissionbt.com/level1 "
2009-04-07 20:38:15 +00:00
Charles Kerr
87e4c99fbb
(trunk libT) #1976 : build problem with r8173: "erreur: ‘POSIX_FADV_SEQUENTIAL’ undeclared"
2009-04-07 20:25:32 +00:00
Charles Kerr
30bb6b3ecf
(trunk libT) yet another fix found by RolCol
2009-04-07 04:23:04 +00:00
Charles Kerr
0746a8eafa
(trunk libT) posix_fadvise() tweak to the new verify code.
2009-04-06 23:51:55 +00:00
Charles Kerr
f4c0b8c3c2
(trunk libT) fix typo
2009-04-06 20:33:50 +00:00
Charles Kerr
0c6d70040a
remove double-extern-"C" wrapping
2009-04-06 17:54:11 +00:00
Charles Kerr
0727849c7f
(trunk rpc) add a method to make the daemon test & see if the incoming peer port is open
2009-04-06 16:36:00 +00:00
Charles Kerr
76f7e59a8c
(trunk libT) tr_getDefaultDownloadDir(): always honor $XDG_CONFIG_HOME/user-dirs.dirs if it exists.
2009-04-06 16:10:37 +00:00
Charles Kerr
62395da3be
(trunk libT) faster code for verifying entire torrents. Timing tests @ http://transmission.pastebin.com/m4e1d6ee
2009-04-06 04:02:51 +00:00
Charles Kerr
3a28dd02e5
(trunk libT) silence a spurious warning in the new bencode code
2009-04-06 01:32:55 +00:00
Charles Kerr
6373802ca8
better bool, real handling in (1) the gtk prefs interface, (2) the dictionary merge code, (2) the json parser
2009-04-05 23:46:53 +00:00
Charles Kerr
dce5997f29
(trunk) fix another new bencode bug. add some more unit tests for benc.
2009-04-05 23:16:45 +00:00
Charles Kerr
8f256a4648
(trunk libT) update one of the validity tests to understand the bool and double types
2009-04-05 21:33:06 +00:00
Charles Kerr
248a0c7fcb
(trunk) change the bencode type enum to prevent OS-level collision
2009-04-05 18:02:11 +00:00
Charles Kerr
8a8c8711d8
(trunk) Use proper notation for json floating-point and bool types. For backwards compatability, still allow old-style printf strings as doubles, and 0s and 1s as bools.
2009-04-05 17:52:21 +00:00
Charles Kerr
6bcce280dc
(trunk) back out the avahi patch
2009-04-05 17:34:34 +00:00
Charles Kerr
3ef8240b80
(trunk) If avahi's zeroconf implementation is available, use it to advertise our web ui
2009-04-05 15:49:03 +00:00
Charles Kerr
fa509c1e90
(trunk) fix another rpc seed-ratio problem reported by livings
2009-04-05 15:37:45 +00:00
Charles Kerr
1e327f593d
(trunk libT) #1966 : add explicit support for preallocating files on XFS filesystems
2009-04-05 14:04:07 +00:00
Charles Kerr
822a192758
(trunk libT) fix Solaris build error reported by wereHamster
2009-04-05 13:56:41 +00:00
Charles Kerr
836330d834
(trunk libT) fix xdg oops
2009-04-05 13:41:38 +00:00
Charles Kerr
fa7f320f5b
(trunk libT) #1957 : tr_getDownloadDir() should honor XDG
2009-04-05 13:33:32 +00:00
Charles Kerr
9e9743c6b1
(trunk libT) re-add the curl "easy queue" from 1.4x to queue libcurl tasks to ameliorate complaints of "too many open files"
2009-04-05 13:00:17 +00:00
Charles Kerr
2e9546d70e
fix oops
2009-04-04 05:32:37 +00:00
Charles Kerr
a1adee368f
(trunk)
...
1. add to the "recently-changed" torrent a list of recently-removed torrent ids.
2. make the day-of-week alt speed a bitfield of days or'ed together, so that you can have (say) speed limits on monday and wednesday
2009-04-04 05:29:08 +00:00
Mitchell Livingston
f3cf4b4ef5
libT support for #1679 Schedule Speed Limit mode based on days, not just time
2009-04-04 02:17:39 +00:00
Charles Kerr
cb179b58ba
(trunk rpc) add rpc command to tell libtransmission when to update its blocklist
2009-04-03 23:21:40 +00:00
Mitchell Livingston
7f99b81293
whoops
2009-04-03 04:31:25 +00:00
Mitchell Livingston
aab0c1b87c
#1969 separate picking a random port from choosing a random port at startup
2009-04-03 04:29:27 +00:00
Mitchell Livingston
a621b7eedb
attempt to add random-port functionality to the rpc code
2009-04-03 03:40:37 +00:00
Charles Kerr
96b726c08a
(trunk rpc) add "torrentFile" to the list of allowed arguments to the "torrent-get" method
2009-04-02 22:59:30 +00:00
Charles Kerr
b6daa50ecf
(trunk rpc) add the ability to set file priorities and download flags when adding a new torrent via rpc
2009-04-02 20:43:42 +00:00
Charles Kerr
c3b24bc471
(trunk) modify tr_torrentParse() and tr_torrentNew() arguments s.t. they use the ctor's session instead of passing it in again. Allow a NULL session pointer for some cases of tr_torrentParse().
2009-04-02 17:30:29 +00:00
Charles Kerr
e649e80fe5
(trunk rpc) added "fileStats" to rpc s.t. there's a simple interface for getting all the torrent's stat fields
2009-03-31 22:13:43 +00:00
Charles Kerr
2290c49898
(trunk) add a did-the-user-do-this flag to the "alt speed toggled" callback
2009-03-30 17:25:35 +00:00
Charles Kerr
73b546c817
(trunk libT) possible fix for #1894 : Crash when download finishes and seed ratio is already met
2009-03-30 05:30:28 +00:00
Charles Kerr
beb71cd7ed
(trunk) make tr_bencGetReal() work better in i18n settings
2009-03-30 04:45:40 +00:00
Charles Kerr
b827a37dbd
(trunk libT) add tr_bencGetBool() and tr_bencGetDouble()
2009-03-30 01:46:48 +00:00
Charles Kerr
5be5c803b9
(trunk) add arg "percentDone" to RPC "torrentGet"
2009-03-30 00:57:41 +00:00
Charles Kerr
730dd0ec20
(trunk) fix oops
2009-03-29 23:13:46 +00:00
Charles Kerr
f4557fab8e
(trunk) use tr_bencDict{Find,Add}Bool() where appropriate
2009-03-29 23:05:32 +00:00
Charles Kerr
d2d507725b
(trunk rpc) add "seed ratio" feature to RPC
2009-03-29 18:45:35 +00:00
Charles Kerr
adc5bec662
(trunk libT) silence a couple of session.c warnings from last night
2009-03-29 16:44:59 +00:00
Mitchell Livingston
66850624c5
ensure alt speed limit is set on launch when using the scheduler
2009-03-28 20:07:38 +00:00
Mitchell Livingston
1a716f2c76
on startup, if the speed limit timer is set, check the timer and ignore TR_PREFS_KEY_ALT_SPEED_ENABLED
2009-03-28 19:53:44 +00:00
Mitchell Livingston
828e0356cc
improve the logic when toggling the use of the speed limit timer
2009-03-28 19:46:34 +00:00
Charles Kerr
f1d92708e7
(trunk) more speedlimit work
2009-03-28 16:47:01 +00:00
Charles Kerr
bed0681dd9
(trunk rpc) add peer-limit to torrent-get
2009-03-27 12:05:41 +00:00
Charles Kerr
57fe19acd6
(trunk) roll back a couple of the RPC naming changes for slightly better compatiblity with 1.5x
2009-03-27 01:40:51 +00:00
Charles Kerr
93ffda5b5a
(trunk) fix a bug with the new libT alt speed limit code
2009-03-27 01:39:35 +00:00
Erick Turnquist
2f8d56e77f
(trunk libT) make IPv6's two IPv4-compatible address formats invalid peer addresses
...
IPv4 peers should only be seen from an IPv4-connected tracker.
2009-03-27 01:31:17 +00:00
Erick Turnquist
dd7eb76718
(trunk libT) remove tr_suspectAddress() since all seems well
2009-03-27 01:14:25 +00:00
Charles Kerr
cc1a4ec1e9
(trunk) rpc changes:
...
1. new field "blocklist-size" to session-info, so RPC clients can know how big the blocklist is
2. new method "torrent-reannounce" so RPC clients can ask the tracker for more peers
2009-03-26 18:06:54 +00:00
Charles Kerr
d2d2364077
(trunk libT) modification to r8088 at livings1's request: make sure the alternate speed test takes place at the top of the minute
2009-03-25 19:50:58 +00:00
Charles Kerr
b1fc4ed8c4
(trunk) #1950 : Add off-peak hour bandwidth limiting to libtransmission, rpc
2009-03-25 19:18:00 +00:00
Charles Kerr
5df2570fdf
(trunk libT) make tr_localtime_r() a public function
2009-03-25 18:42:39 +00:00
Charles Kerr
81c431d006
(trunk libT) make rpcimpl.h includable from C++
...
M rpcimpl.h
2009-03-25 18:41:48 +00:00
Erick Turnquist
81a01fe1d3
(trunk libT) re-add rpc password to settings benc dict
2009-03-25 00:36:11 +00:00
Charles Kerr
9ca15eb183
(trunk libT) wrap rpcimpl.h in 'namespace "C"' when #included from C++
2009-03-25 00:15:42 +00:00
Erick Turnquist
4b92e07ce0
(trunk libT) fix a couple warnings from r8080
2009-03-24 21:49:19 +00:00
Charles Kerr
0a6ab3014c
(trunk libT) #1944 : Web Client 301 redirect violates w3c.org specification
2009-03-24 17:11:53 +00:00
Erick Turnquist
44ea61bced
(trunk libT) #1276 - hash rpc password with sha1
2009-03-24 01:39:06 +00:00
Charles Kerr
5cd6c41ec7
(trunk rpc) added "recently-active" as a valid "ids" argument in torrent-get, etc.
2009-03-23 00:16:37 +00:00
Charles Kerr
9fceeeae57
make json.h friendly to C++
2009-03-23 00:08:34 +00:00
Mitchell Livingston
50c9385ceb
#1276 encrypt the password to access web client interface using SHA-2
2009-03-17 21:50:20 +00:00
Charles Kerr
e892398a95
(trunk libT) make tr-getopt C++ friendly
2009-03-17 18:08:02 +00:00
Mitchell Livingston
d15d48e75e
when showing the stats for selected files, progress on a transfer with no selected files should be 0%, not -100%
2009-03-14 19:55:24 +00:00
Charles Kerr
68448d18ea
(trunk gtk) launchpad bug #338046 : XDG_DOWNLOAD_DIR isn't honored in gtk client
2009-03-10 15:24:40 +00:00
Charles Kerr
9d335e391e
(trunk libT) #1906 : Huge ratio precision (too many decimal places)
2009-03-09 23:51:58 +00:00
Charles Kerr
41b0cc8cdd
(trunk) libT and gtk+ parts for #1889 : per-torrent vs. global speed limit confusion
2009-03-04 19:52:57 +00:00
Charles Kerr
93b3d1ad7e
(trunk) #1881 : promote tr_strratio() to libtransmission, so that its code doesn't have to be repeated in all the clients
2009-03-04 16:16:02 +00:00
Charles Kerr
e8422f8cdd
(trunk libT) always invoke the stop-ratio check when a torrent switches from leeching to seeding.
2009-03-04 15:13:56 +00:00
Charles Kerr
0d1a699cd7
(trunk libT) recognize aria2 as a client
2009-03-04 05:52:33 +00:00
Charles Kerr
74e544ca22
(trunk libT) when a "torrent-set" request is sent to change files' priorities and/or download flags, and some of the file indices are out-of-range, return an error message in the rpc response's "result" string.
2009-03-03 20:06:45 +00:00
Charles Kerr
ebe125e896
(trunk libT) add another seed-ratio check when starting a torrent, as per Mitchell's suggestion
2009-03-02 23:52:25 +00:00
Charles Kerr
e47808c277
(trunk) #1608 : Completed pieces bitfield in rpc
2009-03-02 05:48:32 +00:00
Charles Kerr
6f994f6708
(trunk libT) in tr_torrentCheckSeedRadio(), make sure to check & see if the torrent is running ;)
2009-03-02 03:18:03 +00:00
Mitchell Livingston
3ffbb31774
if the ratio is infinity, stop seeding if a stop ratio is set
2009-03-01 23:49:43 +00:00
Mitchell Livingston
2dabe5ce34
move the percent to the stop ratio into libtransmission
2009-03-01 23:48:04 +00:00
Charles Kerr
6fc252e007
(trunk libT) tweak r7985
2009-03-01 17:38:23 +00:00
Charles Kerr
d2f69877cf
(trunk libT) tweak r7978
2009-03-01 17:37:10 +00:00
Mitchell Livingston
7400adb70d
make the ratio that is checked for stop ratio match the displayed ratio
2009-03-01 14:01:49 +00:00
Charles Kerr
857b3dab10
(trunk libT) #1823 : Ratio limit is only checked when peers are active
2009-03-01 13:56:22 +00:00
Mitchell Livingston
fb02e9d437
#1710 the daemon will use the Application Support folder on Mac
2009-02-28 21:45:16 +00:00
Charles Kerr
288f38e1fb
(trunk libT) #1832 : Transmission should notify when JSON parser fails
2009-02-27 00:57:42 +00:00
Charles Kerr
c07180fa49
(trunk libT) #1829 : age out the refill list every 10 seconds, not every 1 second
2009-02-25 22:15:04 +00:00
Charles Kerr
91940d1c07
(trunk libT) #1829 : high CPU use in refillPiece()
2009-02-25 13:04:51 +00:00
Charles Kerr
52777f376f
(trunk libT) make TR_DEFAULT_PEER_SOCKET_TOS_STR default to "0" based on a suggestion from sylware in #transmission
2009-02-20 17:34:35 +00:00
Charles Kerr
fcfe4e3638
(trunk libT) some minor tr_bool correctness
2009-02-19 21:55:00 +00:00
Charles Kerr
06080f35b3
(trunk libT) fix oops
2009-02-18 22:37:27 +00:00
Charles Kerr
3ce4f44a6e
(trunk libT) more #1829
2009-02-18 22:25:13 +00:00
Charles Kerr
f9e400a22d
(trunk libT) a little more work on #1829
2009-02-18 21:27:44 +00:00