Charles Kerr
a44f3d75a0
more hacking on libcurl + libevent integration
2008-10-17 20:57:54 +00:00
Charles Kerr
123a5c53a9
Try to hammer out some of the bugs in web.c. This still feels like a work in progress. Also, add a queue for tracker requests so that we don't wind up with 100s of concurrent http requests when there are a lot of torrents.
2008-10-16 05:24:57 +00:00
Mitchell Livingston
96f3939edd
2 arguments were swapped in curl_multi_socket_action()
2008-10-15 23:21:53 +00:00
Charles Kerr
1bf67e9b61
update snapshot of Jean Gressmann's JSON parser
2008-10-15 20:00:09 +00:00
Charles Kerr
e990c95336
(libT) apply some changes from Spry's code
2008-10-15 19:52:15 +00:00
Charles Kerr
26cac56509
(libT) if a tracker announce succeeds and the tracker's response is a superset of a scrape response, then treat it as a successful announce AND scrape.
2008-10-15 17:53:42 +00:00
Charles Kerr
2f3580cc90
(libT) possible backwards compatability tweak for libcurl < 7.16.3
2008-10-15 17:12:53 +00:00
Charles Kerr
0b991a55c7
(libT) try again to get the libevent+libcurl code working
2008-10-15 16:43:51 +00:00
Charles Kerr
b5c2f14387
(libT) dead code removal
2008-10-14 20:44:41 +00:00
Charles Kerr
59c2a61971
one more batch of changes from Spry
2008-10-14 20:31:16 +00:00
Charles Kerr
f6f9d898e4
(libT) #1327 : win32 cannot select() on the file descriptors of pipe()
2008-10-14 18:17:33 +00:00
Charles Kerr
a257d0fb89
(libT) a few more win32 portability changes from Spry
2008-10-14 17:57:44 +00:00
Charles Kerr
e4b1d5d726
mmap portability changes by Spry
2008-10-14 17:30:07 +00:00
Charles Kerr
e8b4465a00
fix another oops from yesterday's tr_buildPath() reworking
2008-10-14 17:27:59 +00:00
Charles Kerr
ae0201db0f
(libT) raise the size of the io buffer in recalculateHash() to 8 KiB
2008-10-14 05:24:59 +00:00
Charles Kerr
c2ddf1b2fe
fix oops
2008-10-14 04:51:42 +00:00
Charles Kerr
53339a1498
(libt) remove some more instances of MAX_PATH_LENGTH
2008-10-14 03:54:57 +00:00
Charles Kerr
b04be5fb2e
make MAX_PATH_LENGTH private to libtransmission. add tr_dirname() and tr_basename() utility / portability wrappers
2008-10-14 03:39:16 +00:00
Charles Kerr
e3a5524189
have tr_buildPath() allocate memory from the heap rather than using an input buffer
2008-10-14 03:03:29 +00:00
Charles Kerr
e660acc669
fix oops
2008-10-14 01:29:33 +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
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