Commit Graph

98 Commits

Author SHA1 Message Date
Charles Kerr 06080f35b3 (trunk libT) fix oops 2009-02-18 22:37:27 +00:00
Charles Kerr f9e400a22d (trunk libT) a little more work on #1829 2009-02-18 21:27:44 +00:00
Charles Kerr 27cb7caf55 (trunk libT) In RPC, add general support for nonblocking methods, and specific support for adding a torrent via its URL and fetching it via curl without blocking. 2009-01-18 15:24:26 +00:00
Charles Kerr db58b89f6e (trunk libT) Clean up RPC server initialization (wereHamster) 2009-01-13 16:35:06 +00:00
Charles Kerr fe816d8135 (trunk) update the GPL code's copyright dates 2009-01-10 23:09:07 +00:00
Charles Kerr 6bec82d0a6 (trunk libT) have tr_bencSaveAsJSON() use an evbuffer 2008-12-30 22:07:39 +00:00
Charles Kerr 20e1222078 (trunk libT) patch from wereHamster to recycle the zlib deflate stream s.t. we don't have to keep reallocating it 2008-12-30 20:40:48 +00:00
Charles Kerr ad69a937ef (trunk libT) have a pool of reusable evbuffers 2008-12-30 20:32:00 +00:00
Charles Kerr 460f862dbc (trunk libT) add yet another ACL diagnostic message 2008-12-23 21:34:07 +00:00
Charles Kerr 32ebb868e7 (trunk libT) one more ACL warning 2008-12-21 19:35:38 +00:00
Charles Kerr d39354c306 (trunk libT) add html and console hints about whitelist status & configuration 2008-12-21 19:23:41 +00:00
Charles Kerr 56663b860b (trunk libT) add more startup debug messages in the RPC server 2008-12-16 16:13:21 +00:00
Charles Kerr 9594112d27 updated email address 2008-12-16 00:20:44 +00:00
Charles Kerr 788b397ecc (trunk libT) more semantic cleanup: tr_handle->tr_session, int->tr_bool, int->tr_port 2008-12-14 11:21:11 +00:00
Charles Kerr f1419a95c0 (trunk libT) semantic cleanup: int -> tr_bool 2008-12-13 23:39:12 +00:00
Charles Kerr 6b0d98a695 (trunk) #1559: Simplify tr_sessionInitFull 2008-12-13 23:17:36 +00:00
Charles Kerr a14621c363 (libT) janitorial: use the tr_port type whenever we have a `port' as a function argument or as a field in a struct. 2008-12-01 20:51:01 +00:00
Charles Kerr d12af295c1 use tr_bool instead of C bitfields. (http://blogs.msdn.com/oldnewthing/archive/2008/11/26/9143050.aspx) 2008-11-28 22:11:41 +00:00
Charles Kerr ed95969380 (libT) #1480: RPC Server Deflated response 2008-11-19 16:12:00 +00:00
Charles Kerr a4472fc529 #1443: check for zlib fails when providing a specific path 2008-11-09 15:43:31 +00:00
Charles Kerr 80f7b7cfef (daemon) when serving deflated output, strip off the first 2 and last 4 bytes from deflate()'s output, for reasons described at http://carsten.codimi.de/gzip.yaws/ 2008-11-01 22:09:16 +00:00
Charles Kerr 06939cafa6 (libT) low-hanging fruit discovered from softwareelves' shark profile. 2008-10-26 15:39:04 +00:00
Charles Kerr 7f9d71e6ff silence a couple of minor warnings from sparse/cgcc 2008-10-21 03:57:56 +00:00
Charles Kerr ef5bc3f150 (libT) more win32 work copied from spry's code:
(1) add #define for {read,write,strncasecmp} -> {_read,_write,_strnicmp}
(2) fix a couple more variadic macros that didn't get fixed in the last commit
(3) use evutil_strtoll() instead of strtoll()
2008-10-14 01:00:15 +00:00
Charles Kerr 88ce8a5c44 more changes inspired by spry's `winport' code: for portability, use the standard __VA_ARGS__ macro for variadic macros instead of the CPP extensions. 2008-10-13 22:45:05 +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 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 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 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 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 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 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 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