1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-24 15:10:39 +00:00
Commit graph

1844 commits

Author SHA1 Message Date
Charles Kerr
52a2527963 (rpc) better fix for #1330 2008-10-08 13:33:19 +00:00
Charles Kerr
38d265d9f0 (libT) possible fix for #1305: Transmission losing data - Session Transfer significantly higher than actual download 2008-10-08 03:58:21 +00:00
Charles Kerr
8ced51a9e4 (rpc) if libt can't find the Clutch files, give a helpful 404 message for end-users and binary packagers about how to use CLUTCH_HOME and PACKAGE_DATA_DIR. 2008-10-07 01:25:29 +00:00
Charles Kerr
178008650e (libT) remove dead code 2008-10-06 19:44:38 +00:00
Charles Kerr
7fd0ff7fb2 (rpc) slightly better errno handling 2008-10-06 16:33:33 +00:00
Charles Kerr
ebee18380e slightly more efficient serving of static files & rpc responses 2008-10-06 13:36:06 +00:00
Charles Kerr
7249493759 (libT) #1318: transmission daemon eats all resources 2008-10-06 01:52:29 +00:00
Charles Kerr
5391f768f4 fix a null pointer dereference 2008-10-05 22:51:18 +00:00
Charles Kerr
2a5e92fb7c sync libtransmission to miniupnpc-20081002 2008-10-04 15:23:47 +00:00
Charles Kerr
cc1302c9c8 (rpc) #1319: possible fix for the deflate bug 2008-10-03 23:20:44 +00:00
Charles Kerr
77d3e0613d (rpc) #1319 as pointed out by spry, deflate()'s output can sometimes be larger than the native form. In these cases, use the smaller of the two sources. 2008-10-03 20:46:58 +00:00
Charles Kerr
4f5a6de98d (rpc) more robust `deflate' wrangling, possibly fixing ticket #1319 2008-10-03 17:38:14 +00:00
Charles Kerr
24b75a7d74 maybe fix the mac build 2008-10-03 04:57:06 +00:00
Charles Kerr
4fab4c9e9b (libT) finish killing tr_errno. 2008-10-03 04:49:06 +00:00
Charles Kerr
2918e2efaf (libT) eliminating tr_errno, part 4: don't use it in recalculateHash() 2008-10-03 00:51:40 +00:00
Charles Kerr
5178988964 (libT) eliminating tr_errno, part 3: don't use it in tr_cpBlockBitfieldSet() 2008-10-02 23:37:58 +00:00
Charles Kerr
f9345da6ae (libT) eliminating tr_errno, part 2: don't use it in reqListPop() or reqListRemove() 2008-10-02 20:55:05 +00:00
Charles Kerr
79d8a5cdf3 (libT) eliminating tr_errno, part 1: make tr_ioTestPiece return an int instead of a tr_errno. 2008-10-02 20:30:29 +00:00
Charles Kerr
f3d75b3b57 (rpc) fix rpc server memory leak that snuck in over the past few days' switch from shttpd to evhttp 2008-10-02 16:50:05 +00:00
Charles Kerr
d7a5cf0828 (rpc) fix minor path resolution glitch when serving up clutch files 2008-10-02 16:24:44 +00:00
Charles Kerr
b1ef118e3f (libT) housekeeping: tr_torrent.handle --> tr_torrent.session 2008-10-02 15:53:33 +00:00
Charles Kerr
e830fa23d4 (rpc) #1261: session-get's speed-limit-down & speed-limit-up fields have the wrong units 2008-10-01 23:30:27 +00:00
Charles Kerr
6cba9305ae add a separate flag for enabling/disabling the rpc address whitelist 2008-10-01 22:59:29 +00:00
Charles Kerr
bddf34d7a8 #1309: Web/RPC interface ACL ignored 2008-10-01 20:23:57 +00:00
Charles Kerr
60f84b35d9 (libT) better handling of Shad0w-style peer ids that don't have trailing dashes, such as Osprey Permaseed 2008-10-01 18:11:28 +00:00
Charles Kerr
585a9783ad add support for compressing the content served by the rpc server -- rpc responses and clutch html/css/js files 2008-10-01 15:53:56 +00:00
Charles Kerr
859af09f37 (libT) maybe fix the evhttp issues that softwareelves reported 2008-10-01 04:26:38 +00:00
Charles Kerr
f6a770f1db pass 0.0.0.0 in as the rpc server address 2008-09-30 18:31:04 +00:00
Charles Kerr
1c20c64062 send NULL as the address to evhttp_bind_socket() 2008-09-30 16:18:44 +00:00
Charles Kerr
c55a20b074 (libT) d'oh, left out an important line last night while testing the rpc server w/softwareelves 2008-09-30 16:04:41 +00:00
Charles Kerr
86b6e00321 (libT) make sure to init the rpc server with the correct event base. 2008-09-29 04:26:52 +00:00
Charles Kerr
713b99d64b add some debugging messages for the RPC server 2008-09-29 03:02:27 +00:00
Charles Kerr
4caac75646 (libT) #1267: when making new torrents, don't allow 0-byte files 2008-09-28 16:02:13 +00:00
Charles Kerr
b8cff462a7 (libT) uncrustify 2008-09-26 15:40:24 +00:00
Charles Kerr
8903960174 a little more cleanup of the rpc server stuff. 2008-09-26 04:41:13 +00:00
Charles Kerr
4907ad1d54 (libT) more rpc-server cleanup 2008-09-26 00:58:06 +00:00
Charles Kerr
4c34b2bc89 rpc-server cleanups. add true wildmat control. break the Mac build a little harder. 2008-09-25 18:48:09 +00:00
Charles Kerr
bd5a2ae6b8 (libT) experimental code to serve clutch/rpc via evhttpd 2008-09-25 05:03:39 +00:00
Charles Kerr
cc89872dd4 run libT, cli, daemon, gtk through the source-code formatter "uncrustify" as promised/threatened 2008-09-23 19:11:04 +00:00
Charles Kerr
e07bc3543e (wx) get the wxWidgets port building again. :) 2008-09-19 17:17:34 +00:00
Charles Kerr
9c2c4ca08d fix at least one possible cause for the new crash reported by persept 2008-09-19 17:03:25 +00:00
Charles Kerr
85edfe35d5 (libT) apply a line from #1181's fix that was accidentally applied to the 1.3x branch instead of trunk. both are in sync now wrt #1181. 2008-09-18 16:18:50 +00:00
Charles Kerr
b5efa86ad7 add new compile-time throttle options suggested by persept 2008-09-18 03:55:31 +00:00
Charles Kerr
4fe1e1dae3 first draft at having more accurate speed controls 2008-09-17 19:44:24 +00:00
Mukund Sivaraman
b00bce23f5 Increment str so loop progresses 2008-09-16 07:10:04 +00:00
Charles Kerr
47292055ca (libT) #1269: check for the `downloaded' key in the announce repsonse. a successful announce response already resets the rescrape countdown, so that half of the ticket is redundant. 2008-09-14 00:57:11 +00:00
Charles Kerr
55a01eea2c (libT) calculate a piece's checksum on the stack, rather than the heap 2008-09-06 13:25:21 +00:00
Mukund Sivaraman
77fdc04c0e (win32) Don't use files in /tmp/ for test on win32 2008-09-06 07:26:29 +00:00
Mukund Sivaraman
64c9e8aabc (win32) Stack smash test fails with too much depth on win32 2008-09-06 07:26:25 +00:00
Charles Kerr
4bfd2e9f46 get rid of a pointless seek() call 2008-09-06 03:02:30 +00:00
Mukund Sivaraman
d71d6dfd95 Include crypto.h for randint test 2008-09-06 02:09:53 +00:00
Mukund Sivaraman
4d794e1a5b Test val instead of i 2008-09-06 02:08:43 +00:00
Charles Kerr
7944e7c608 add a unit test to exercise tr_cryptoRandInt() 2008-09-06 02:04:37 +00:00
Charles Kerr
ee10a8acab (libT) #1255: fails to parse announce URLs that have leading or trailing spaces 2008-09-05 19:11:30 +00:00
Mukund Sivaraman
72b8c7397c (win32) Replace missing symbols with values 2008-09-05 14:32:35 +00:00
Mukund Sivaraman
c149fc1d27 (win32) Add getpagesize() and getregionsize() implementations 2008-09-05 14:32:32 +00:00
Mukund Sivaraman
07101de87e (win32) Fix types and alignment in interlocked exchange 2008-09-05 14:32:28 +00:00
Mukund Sivaraman
5ea5613c0f (win32) Rename rpc.[ch] to rpcimpl.[ch] 2008-09-05 14:31:58 +00:00
Mukund Sivaraman
68a6c95d1c (win32) Add mmap implementation 2008-09-05 14:31:52 +00:00
Mukund Sivaraman
bbd5e129fe (win32) Don't use dllimport/dllexport 2008-09-05 14:31:46 +00:00
Charles Kerr
5184119948 (libT) possible solution to the peer hammering problem reported by Switeck 2008-09-05 05:14:49 +00:00
Charles Kerr
419242e36f (libT) change benc's integral type from int to size_t, squashing a couple of minor warnings 2008-09-04 14:42:32 +00:00
Charles Kerr
712df8f761 #1209: shttpd crash when setting port to one already in use 2008-09-03 19:59:09 +00:00
Charles Kerr
8c421bd0ec pump the web connections more frequently when there are tasks pending. this may speed up the shutdown flurry of `stop' announcements 2008-09-03 19:13:19 +00:00
Charles Kerr
abd4b506e2 fix a confusing extraneous line in the previous commit 2008-08-27 18:56:36 +00:00
Charles Kerr
64e08510f0 (libT) maybe fix the hangs reported by users in the recent nightlies. 2008-08-27 18:50:21 +00:00
Mukund Sivaraman
9d35118808 Fix coding style of last commit 2008-08-27 15:47:41 +00:00
Mukund Sivaraman
18d6bc7730 Return early if no URL is passed 2008-08-27 15:46:50 +00:00
Mitchell Livingston
7b62feac10 enable lazy bitfields 2008-08-26 21:44:51 +00:00
Charles Kerr
dcaf1f16ef (shttpd) replace VERSION with SHTTPD_VERSION.
(shttpd) make shttpd_edit_passwords() a public function for now to fix the build.
2008-08-25 20:32:26 +00:00
Mitchell Livingston
fa8ffca078 #1210 on Mac, the web ui should now work when Transmission's path contains a space 2008-08-22 23:55:33 +00:00
Charles Kerr
6cf752b33d #1222: web access authentication text 2008-08-22 23:04:16 +00:00
Charles Kerr
d39005b0d1 uncrash the build 2008-08-22 20:53:19 +00:00
Charles Kerr
815bf68082 crash deeper inside libtransmission. do not use this build; it crashes on purpose to test part of the nightly build system 2008-08-22 20:06:51 +00:00
Charles Kerr
a11aac24ca (libT) add an environmental variable to enable libcurl verbosity 2008-08-22 19:14:19 +00:00
Charles Kerr
82815a74d2 #1214: add RPC support for per-peer status,ul,dl,address info 2008-08-22 17:59:31 +00:00
Charles Kerr
960ded0af4 force Transmission to crash when started. don't use this revision; it's for testing the nightly build system. 2008-08-22 17:14:29 +00:00
Mukund Sivaraman
318ca1fb7e Don't use memmove() for simple assignment 2008-08-22 16:34:16 +00:00
Mukund Sivaraman
c10a612f90 Use stricter type for enums 2008-08-22 16:30:07 +00:00
Mukund Sivaraman
196ae72a85 Don't move all the rest of peers if current peer is choked
Only move the last peer into place.
2008-08-22 16:30:02 +00:00
Mukund Sivaraman
75d2e74a64 Use stricter type for enums 2008-08-22 16:13:52 +00:00
Mukund Sivaraman
b79e6561c0 Remove unused missingBlockCount 2008-08-22 16:03:49 +00:00
Charles Kerr
c32491ab3a (libT) remove a little more dead code 2008-08-22 15:33:55 +00:00
Charles Kerr
f8d38a180e according to vraa's profiling, the highest CPU hit other than encryption is in peerPulse(). do we really need to call it every 50 msec? change the peerPulse() interval to 250 msec. 2008-08-22 15:15:02 +00:00
Charles Kerr
f661504d66 (libT) say goodbye to the last `ii' variable in libT 2008-08-22 15:13:01 +00:00
Charles Kerr
ef68e36a0d (libT) more dead code removal: tr_compareUint32(), tr_compareUint64(), tr_strcmp(), tr_strcasecmp() 2008-08-22 14:52:20 +00:00
Mukund Sivaraman
7f749d1284 Sort piece_data_time in descending order.
Also fix code style in some places.
2008-08-22 02:34:22 +00:00
Mukund Sivaraman
59351991f6 Further fix/cleanup compare code 2008-08-22 02:15:37 +00:00
Charles Kerr
d323a99cdd undo part of r6616 to address the assertion failure reported by andersos and Waldorf 2008-08-22 01:27:00 +00:00
Charles Kerr
7e4fb99f8c * add DISABLE_GETTEXT preprocessor directive to turn off i18n in libtransmission for embedded devices.
* remove `wchar.h' #include from shttpd that broke the compile on embedded devices.
2008-08-21 21:04:57 +00:00
Charles Kerr
ca45125259 (libT) more dead code removal: tr_compareTime() and tr_compareDouble() 2008-08-21 20:39:57 +00:00
Charles Kerr
3df44dad3d maybe fix m1b's tracker issue 2008-08-21 20:18:34 +00:00
Charles Kerr
1105dc0038 (libT) remove some dead functions: tr_calloc(), tr_compareUint16(), tr_compareUint32() 2008-08-21 19:03:56 +00:00
Charles Kerr
2d2d173275 (libT) avoid an unnecessary memory alloc 2008-08-21 18:40:40 +00:00
Charles Kerr
3f25d101e0 fix metainfo bug from earlier today. (m1b, andersos) 2008-08-21 17:03:44 +00:00
Charles Kerr
58881d45be more metainfo/bencode cleanup 2008-08-21 16:12:17 +00:00
Charles Kerr
dcecf09d96 bencode cleanup: remove unused functions and unnecessary #includes 2008-08-21 14:57:59 +00:00
Charles Kerr
1db57b1468 more metainfo cleanup 2008-08-20 21:01:17 +00:00
Charles Kerr
41258ced7e get rid of strlcat_utf8() 2008-08-20 19:21:57 +00:00
Charles Kerr
9eb2f15fff allocate torrent/resume filenames on the heap instead of the stack 2008-08-20 19:00:52 +00:00