Commit Graph

1804 Commits

Author SHA1 Message Date
Charles Kerr b824c704b7 first batch of portability changes based on spry's winport:
(1) added tr_getcwd(), a simple portability wrapper for getcwd()
(2) cli: show the help page if no command-line arguments are provided
(3) daemon: use tr_wait() intead of sleep()
(4) daemon: SIGQUIT, SIGPIPE, SIGHUP aren't defined on windows
(5) libtransmission: a couple of small cleanups to bencode.c, list.c, web.c
(6) libtransmission: win32 portability fixes to platform.c
2008-10-13 22:26:02 +00:00
Charles Kerr f00c8ff34d possible fix for #1305 "Transmission losing data - Session Transfer significantly higher than actual download". This patch may need more user testing and will definitely make webseeds slower. suck it up. 2008-10-11 04:07:50 +00:00
Charles Kerr 7566be5348 #1302: Uploading file deletion is ignored 2008-10-10 03:04:46 +00:00
Charles Kerr 413211288b #1338: fix win32 build errors 2008-10-10 02:14:51 +00:00
Charles Kerr 34061cb3e0 #1336: silence more compliation warnings 2008-10-10 01:23:21 +00:00
Charles Kerr 964d7e193c (libT) #1338: EMSGSIZE and EPROTO not found on Windows 2008-10-10 00:38:37 +00:00
Charles Kerr 50b5be7b91 #1332: libtransmission crashes from invalid RPC query 2008-10-09 20:38:00 +00:00
Charles Kerr 1415b72017 #1336: fix some compiler warnings when building with -Wformat-security 2008-10-09 20:03:34 +00:00
Charles Kerr cc8bed02c6 (rpc) fix small bug introduced in the last commit. 2008-10-08 16:31:17 +00:00
Charles Kerr cceb70b182 (rpc) extra safeguards in r6867 2008-10-08 13:39:44 +00:00
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