Charles Kerr
fad8f285a8
(trunk libT) use jch's suggestion of having a per-session page-aligned memory buffer for general reuse. ( http://trac.transmissionbt.com/ticket/2551#comment:5 )
2010-02-23 07:20:57 +00:00
Charles Kerr
f1221f958f
(trunk libT) dead code removal -- the buffer & buflen arguments to tr_ioTestPiece() were unused
2010-02-23 06:05:18 +00:00
Charles Kerr
9c0900eb20
(trunk libT) possible fix for gn0s1s' "file not found" error message
2010-01-26 21:41:40 +00:00
Charles Kerr
5c26afdb52
happy new year!
2010-01-04 21:00:47 +00:00
Charles Kerr
78ead8c3dd
(trunk) update the copyright notices
2009-12-05 02:19:24 +00:00
Charles Kerr
cf69b11031
(trunk libT) #2595 : "file too large error?" -- this can generate an EFBIG warning sparse preallocation is on and the peer makes an invalid request. At worst this kind of oddball case should generate a debug message notice, not a torrent error. Reported by Waldorf.
2009-11-25 19:26:30 +00:00
Charles Kerr
94a48c4c81
(trunk libT) a very minor commit. remove trailing spaces from lines and other stuff like that
2009-11-22 03:57:36 +00:00
Charles Kerr
3759c98d76
(trunk libT) #2551 "better buffer cache management": apply jch's prefetch-base.patch
2009-11-08 23:43:38 +00:00
Charles Kerr
c85ee09fef
(trunk) trunk's just been too stable lately. #2119 : reload settings.json on SIGHUP
2009-10-23 03:41:36 +00:00
Charles Kerr
c59ae60488
libT doesn't need to create the Incomplete directory until it's needed
2009-10-21 19:33:37 +00:00
Charles Kerr
0c53f3fa62
(trunk libT) add a couple of hooks for the mac client to use when migrating from its earlier move-on-complete code
2009-10-21 05:03:10 +00:00
Charles Kerr
0df58b9ab4
(trunk libT) change the new public API a little bit -- clearer, but a little wordier
2009-10-20 04:43:51 +00:00
Charles Kerr
27b9f6e27d
(trunk libT) make the ".part" suffix an optional feature as per BMW's request. Clean up the code a little.
2009-10-20 03:14:44 +00:00
Charles Kerr
05c77cc975
(trunk) #1483 : move completed torrents to a user-specified directory + #629 : different file extension for incomplete files
2009-10-19 05:05:00 +00:00
Charles Kerr
9af75365d2
(trunk libT) a test commit -- possible fseek fix for Rabbitbunny
2009-09-09 03:23:50 +00:00
Charles Kerr
c7e2a29f57
add better logging to track down tr_ioRead() error messages reported by Rabbitbunny
2009-09-08 06:25:40 +00:00
Charles Kerr
1c5b344c85
(trunk libT) remove dead code noticed by geirha
2009-08-15 15:52:10 +00:00
Charles Kerr
11717de1d0
(trunk libT) fix #2332 : filesystem-based error messages lack context
2009-08-13 17:25:26 +00:00
Charles Kerr
bf1a544939
(trunk) all this commit does is remove trailing whitespace from some c, c++, and javascript source
2009-08-12 14:40:32 +00:00
Charles Kerr
ef9896e223
(trunk libT) more efficient closing of a torrent's open files
2009-06-21 07:36:51 +00:00
Charles Kerr
a84a1720a7
(trunk libT) experimental commit for wereHamster
2009-04-26 16:14:47 +00:00
Charles Kerr
c99f941d16
(trunk libT) make file preallocation optional via settings.json. choices are: full, sparse, and none
2009-01-16 16:38:16 +00:00
Charles Kerr
fe816d8135
(trunk) update the GPL code's copyright dates
2009-01-10 23:09:07 +00:00
Charles Kerr
5381e20e9b
(trunk libT) improve piece verification speed by providing a larger buffer, and add a mechanism to reuse it when verifying an entire torrent at once.
2008-12-31 18:08:13 +00:00
Charles Kerr
d463cdb509
(trunk libT) eliminate a couple more unnecessary malloc() + free() pairs
2008-12-30 03:29:09 +00:00
Charles Kerr
798bac0fcb
(trunk libT) omit unnecessary malloc/free calls in peer-io
2008-12-29 19:01:47 +00:00
Charles Kerr
9594112d27
updated email address
2008-12-16 00:20:44 +00:00
Charles Kerr
23b8321463
(trunk libT) back out the changes for #1580 ; closing that ticket as invalid
2008-12-11 00:39:47 +00:00
Charles Kerr
7403048738
(trunk libT) #1580 : use a 65K read buffer for the hash check, even for embedded systems.
2008-12-10 13:57:21 +00:00
Charles Kerr
8eecf37a54
(trunk libT) #1580 : increase the read buffer for the "verify local data" reader to make it a little faster
2008-12-10 03:45:57 +00:00
Charles Kerr
181b9ed905
(libT) extra assertions and safeguards for #1523 : crash in tr_fdFileCheckout() when starting daemon
2008-12-03 01:25:45 +00:00
Charles Kerr
17f5503998
(libT) #1486 : Large file support broken on Windows
2008-11-20 17:19:59 +00:00
Charles Kerr
9ae5d7f41e
(libT) #1424 : one-liner to fix win32 breakage
2008-11-06 04:25:29 +00:00
Charles Kerr
10566eece9
(libT) #849 : preallocate files when possible to prevent disk fragmentation
2008-11-05 05:56:06 +00:00
Charles Kerr
66db7d7b3f
(libT) remove another dead store reported by m1b & clang
2008-11-05 00:21:30 +00:00
Charles Kerr
e990c95336
(libT) apply some changes from Spry's code
2008-10-15 19:52:15 +00:00
Charles Kerr
59c2a61971
one more batch of changes from Spry
2008-10-14 20:31:16 +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
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
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
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
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
b1ef118e3f
(libT) housekeeping: tr_torrent.handle --> tr_torrent.session
2008-10-02 15:53:33 +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
55a01eea2c
(libT) calculate a piece's checksum on the stack, rather than the heap
2008-09-06 13:25:21 +00:00
Charles Kerr
b860119cd3
minor text cleanup
2008-08-01 16:43:22 +00:00
Charles Kerr
2eb89eb2a7
(libT) fix some minor warnings foudn by clang's scan-build and reported by m1b
2008-07-17 20:33:34 +00:00
Charles Kerr
e3e3bee8b5
#800 initial support for GetRight-style fetching of data through http and ftp servers specified in the .torrent's "url-list" tag
2008-06-07 21:26:41 +00:00
Charles Kerr
2c79888a93
RPC/IPC redesign
2008-05-18 16:44:30 +00:00