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
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
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
Erick Turnquist
2719372bc6
(trunk) #1497 Options to listen on specific network sockets
2009-04-15 21:05:58 +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
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
f4557fab8e
(trunk) use tr_bencDict{Find,Add}Bool() where appropriate
2009-03-29 23:05:32 +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
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
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