Charles Kerr
4cbbefd656
(trunk libT) bah, fix r7761 oops
2009-01-20 05:45:03 +00:00
Charles Kerr
69404a8c36
(trunk libT) when pruning out slow peers, don't prune if we don't have good candidates to replace them.
2009-01-20 03:32:54 +00:00
Charles Kerr
1375c707ed
(trunk libT) fix uninitialized variable in bandwidth code
2009-01-20 02:43:21 +00:00
Charles Kerr
dfd5c70916
(trunk libT) fix crash-on-add-torrent-from-clutch reported by anf6
2009-01-20 02:03:09 +00:00
Charles Kerr
2131e8f403
(trunk libT) fix two bugs introduced yesterday's add-torrent changes and uncovered/reported by anf6
2009-01-19 21:37:34 +00:00
Charles Kerr
cfe1358626
(trunk libT) #1715 : More stats information in rpc session-stats command
2009-01-19 21:17:29 +00:00
Charles Kerr
daaa450f8e
(trunk libT) put ful's theory to the test wrt function pointers
2009-01-19 18:11:47 +00:00
Charles Kerr
1d08afa717
(trunk libT) s/function_done/tr_idle_function_done/
2009-01-19 14:10:39 +00:00
Charles Kerr
4d228289ce
(trunk libT) prefer int' over
ssize_t'
2009-01-19 14:05:43 +00:00
Charles Kerr
69f59b423a
(trunk libT) possible fix for the `few peers' errors reported on OS X. denis_, merlyn3d, give this a spin...
2009-01-19 13:55:41 +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
b6588f442b
(trunk libT) have tr_strndup() take an ssize_t instead of an int
2009-01-18 15:15:41 +00:00
Charles Kerr
5ea9bcacbc
(trunk libT) fix a minor memory leak.
2009-01-18 15:15:10 +00:00
Charles Kerr
9c9c94a81d
(trunk libT) discard peers from the tracker or pex that have a port of 0 or a multicast address.
2009-01-17 23:14:35 +00:00
Charles Kerr
4f95edf647
(trunk libT) minor cleanup
2009-01-17 22:49:15 +00:00
Charles Kerr
c1e1fedff9
(trunk libT) check in some of the extra error logging messages developed last night while chasing down the problem denis found
2009-01-17 15:08:20 +00:00
Charles Kerr
f5ace9a71c
(trunk daemon) #1704 : --info and/or --files should show the download directory
2009-01-17 14:58:50 +00:00
Charles Kerr
d95a45b701
(trunk libT) fix IPv6 reported & solved by erdgeist. add debugging message to help track down any future problems.
2009-01-16 23:17:31 +00:00
Charles Kerr
bc2b7fcb03
(trunk libT) minor tweaks to reduce libtransmission shear between trunk and 1.5x
2009-01-16 17:29:42 +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
Erick Turnquist
88a399eb20
(trunk libT) fix r7717
2009-01-16 06:40:23 +00:00
Charles Kerr
4b414e8f2d
(trunk libT) fix tracker IPv6 error reported by the earth spirit
2009-01-16 04:36:36 +00:00
Charles Kerr
a6a29923c7
(trunk) add interface versioning to the RPC spec
2009-01-16 01:03:33 +00:00
Charles Kerr
9c5b6e7d15
(trunk libT) #1698 : RunTime Check failure
2009-01-14 13:30:51 +00:00
Charles Kerr
7a91840639
(trunk libT) Remove tr_peerMgrHasConnections, it isn't used anywhere
2009-01-14 01:37:24 +00:00
Charles Kerr
2c1afe07a4
(trunk libT) fix an r7707 bug in tr_sessionGetActiveTorrentCount()
2009-01-13 21:06:07 +00:00
Charles Kerr
486c55c1ed
(trunk libT) peerMgr: operate directly on tr_torrent and not peerMgr+torrentHash
2009-01-13 21:00:05 +00:00
Charles Kerr
f945058de0
(trunk libT) minor torrent iteration cleanup. (wereHamster, charles)
2009-01-13 16:51:38 +00:00
Charles Kerr
08403324bd
(trunk libT) Remove tr_torrentNext() from the public libT API (wereHamster)
2009-01-13 16:39:19 +00:00
Charles Kerr
db58b89f6e
(trunk libT) Clean up RPC server initialization (wereHamster)
2009-01-13 16:35:06 +00:00
Charles Kerr
8b72408948
(trunk libT) Get rid of peer-mgr-private.h (from wereHamster)
2009-01-13 16:32:43 +00:00
Charles Kerr
30c47d3b6f
(trunk libT) #1655 : rpc-spec 4.2: "session-stats" returns a new object instead of the response arguments
2009-01-13 04:43:38 +00:00
Charles Kerr
a13e0755f0
(trunk libT) close open files immediately after they're done downloading
2009-01-12 21:59:53 +00:00
Charles Kerr
dab899f132
(trunk libT) #1427 : Files are kept open in read/write mode after a torrent finishes
2009-01-12 19:58:16 +00:00
Charles Kerr
bb8451344f
(trunk libT) #1592 : file priorities are not preserved after exiting & starting a new session
2009-01-12 18:02:28 +00:00
Charles Kerr
2f6b56671f
(trunk libT) win32 portability patch from Alexey
2009-01-11 17:02:04 +00:00
Charles Kerr
fe816d8135
(trunk) update the GPL code's copyright dates
2009-01-10 23:09:07 +00:00
Charles Kerr
c2e1f78cf4
(trunk libT) #1634 : better utf8 validation of metainfo "files" field
2009-01-10 22:56:26 +00:00
Charles Kerr
92ee6566db
(trunk libT) #1675 : better utf8 validation of metainfo name, creator, and comment fields
2009-01-10 22:48:58 +00:00
Charles Kerr
d4c5e904b5
(trunk libT) fix minor compiler warning that cropped up when upgrading our ConvertUTF8
2009-01-10 19:29:01 +00:00
Charles Kerr
0321204894
(trunk libT) upgrade our copy of Unicode Inc's freeware ConvertUTF.[ch]
2009-01-10 17:59:49 +00:00
Charles Kerr
c6a454d2e2
(trunk libT) win32 portability fixes, reported by Alexey
2009-01-10 02:22:13 +00:00
Charles Kerr
7683452514
(trunk libT) undo r7645 based on feedback that the experimental code did improve performance.
2009-01-09 19:24:40 +00:00
Charles Kerr
b545dbe28a
(trunk libT) fix downloadDir error reported & tracked down by wereHamster
2009-01-09 18:39:30 +00:00
Charles Kerr
a1b2af981c
(trunk libT) annotate tr_cpBlockBitfieldSet() as suggested by wereHamster.
2009-01-09 17:55:48 +00:00
Charles Kerr
2702fc289a
(trunk libT) finally get around to making upload-slots-per-torrent a settings.json option, thanks to friendly prodding from ful in #transmission
2009-01-09 15:45:44 +00:00
Charles Kerr
f7db63329d
(trunk libT) clear out the experimental code that accumulated while trying to find the fix to the tracker-announces-never-finish bug. This revision is 1.42's version plus bugfixes.
2009-01-08 20:35:10 +00:00
Charles Kerr
e7b9a2eaa2
(trunk libT) fix evbuffer oops
2009-01-08 20:33:33 +00:00
Charles Kerr
55aa6d834f
(trunk libT) make the default number of open files 32 rather than 16, and make it configurable via settings.json. (Reported by Lucius Windschuh via denis_)
2009-01-08 19:20:24 +00:00
Charles Kerr
f3db4c14b7
(trunk libT) The buffer is static anyway, no need to malloc it
2009-01-08 14:05:30 +00:00
Charles Kerr
98420365e9
(trunk libT) remove a small number of redundant or unnecessary asserts
2009-01-08 04:43:00 +00:00
Charles Kerr
6917cac918
(trunk libT) fix odd handshake bug reported by wereHamster
2009-01-07 22:06:40 +00:00
Charles Kerr
30ebbdaacb
(trunk libT) re-enable the completion sanity tests for the benefit of the nightly builds
2009-01-07 17:22:17 +00:00
Charles Kerr
141847b902
(trunk libT) update the copyrights on some files that no longer have old code in them
2009-01-07 06:53:29 +00:00
Charles Kerr
c5ecccdd24
(trunk libT) much faster implementation of tr_cpBlockBitfieldSet()
2009-01-07 02:22:11 +00:00
Charles Kerr
196c3c19c3
(trunk libT) apparently the r7629 tr_cpBlockBitfieldSet() speedup introduced a bug.
2009-01-06 14:43:15 +00:00
Charles Kerr
c0acf3e920
(trunk libT) hm, checked in the wrong version.
2009-01-06 07:48:30 +00:00
Charles Kerr
7581f04242
(trunk libT) faster tr_cpBlockBitfieldSet()
2009-01-06 07:45:15 +00:00
Erick Turnquist
2a6c7dd0fa
(trunk libT) Fix an assertion failure in ptrarrays when values are equal.
...
This bug manifest itself due to a subtle change in tr_compareAddresses(), but
was always there. An assertion would fail if two (obviously adjacent) values
were equal.
2009-01-06 03:22:10 +00:00
Charles Kerr
73d32850ed
(trunk libT) fix refcount error in the new peer-io refcount code
2009-01-06 03:21:22 +00:00
Charles Kerr
3ff145f058
(trunk libT) two bugfixes in one: (1) fix leaking tr_handshake objects reported by BentMyWookie (2) fix yet another permutation of the tr_isBandwidth() assertion failure -- maybe the last one? -- reported by Waldorf
2009-01-06 00:24:44 +00:00
Charles Kerr
30a989f1df
(trunk libT) fix the new-code errors reported by ZogG and Rolcol and Spaham
2009-01-05 18:20:47 +00:00
Charles Kerr
fd26f21400
(trunk libT) fix a minor memory leak reported by Valgrind
2009-01-05 18:18:13 +00:00
Charles Kerr
1b527610dd
(trunk libT) yet another step in the debugging cycle, crash report from ZogG and Rolcol
2009-01-05 07:57:10 +00:00
Charles Kerr
124658791a
(trunk libT) probably fix r7618 reported in #transmission by Rolcol
2009-01-05 06:45:08 +00:00
Charles Kerr
5ccd5a7700
(trunk libT) fix the much-hated "Assertion failed: (tr_isPeerIo( io ))". Also, repeated calls to tr_date() were taking up about 78% of the time in tr_stat(), so instead of calling multiple times, call it once in tr_stat() and pass that value around to the functions that need it.
2009-01-05 04:27:54 +00:00
Charles Kerr
2eb1faa5e8
(trunk libT) minor speedup tweaks in peer-request hotspots
2009-01-04 18:01:15 +00:00
Charles Kerr
6681107c00
(trunk libT) remove a small memory leak in the request-list unit test s.t. valgrind will be happy
2009-01-04 17:46:27 +00:00
Charles Kerr
ca6dd89e10
(trunk libT) minor tr_ptrArray API cleanup
2009-01-04 16:59:15 +00:00
Charles Kerr
cf79c87d7e
(trunk libT) forgot to "svn add" request-list-test.c before committing...
2009-01-04 16:58:09 +00:00
Charles Kerr
6d21e557f5
(trunk libT) fix r7610 bug reported by BentMyWookie
2009-01-04 16:48:31 +00:00
Charles Kerr
51e68d6e56
(trunk libT) new peer request fifo queue with log(N) search time. new unit tests for the queue. new utility tr_lowerBound()
2009-01-04 16:29:44 +00:00
Charles Kerr
a0390c6111
(trunk libT) remove unnecessary prototype
2009-01-04 04:37:47 +00:00
Charles Kerr
2b38f6f81a
(trunk libT) don't use void* when doing pointer math.
2009-01-04 04:37:26 +00:00
Charles Kerr
8690d83ba4
(trunk libT) minor improvement to testing to see if two requests are equal
2009-01-04 02:49:30 +00:00
Charles Kerr
f2c9d270b0
(trunk libT) do scrape paused torrents.
2009-01-04 02:05:17 +00:00
Charles Kerr
422d1b0f97
(trunk libT) don't scrape paused torrents.
2009-01-04 02:01:57 +00:00
Charles Kerr
ead8254b85
(trunk libT) tr_torrentStat() speedups
2009-01-03 23:11:29 +00:00
Mitchell Livingston
cc8e16ed20
only increment the tier count for valid tiers
2009-01-03 21:27:48 +00:00
Charles Kerr
78cf80d3c0
(trunk libT) experimental code to get more peers faster
2009-01-03 07:23:26 +00:00
Charles Kerr
7fcad8a45b
(trunk libT) fix r7594 typo
2009-01-03 05:07:45 +00:00
Charles Kerr
5afd327b15
(trunk libT) use ssize_t where appropriate in tr_peerIoFlush()
2009-01-03 04:57:40 +00:00
Charles Kerr
1e77d1313e
(trunk libT) oh ffs
2009-01-03 03:58:35 +00:00
Charles Kerr
dfa0622a6c
(trunk libT) add "deep log" message to help track down freeze reported by the|Navigator. also, small + cheap speedup in tr_deepLoggingIsActive()
2009-01-03 02:43:17 +00:00
Charles Kerr
0d2d375125
(trunk libT) inline a few more torrent methods
2009-01-03 00:25:27 +00:00
Charles Kerr
cee6610ebb
(trunk libT) inline the tr_bencIs*() utility functions
2009-01-03 00:11:31 +00:00
Charles Kerr
c86780de8b
(trunk libT) avoid unnecessary duplicate calls to tr_date() in tr_bandwidthUsed()
2009-01-02 23:48:51 +00:00
Charles Kerr
49f46dcddb
(trunk libT) revert r7548, which broke very low speed download limits.. the simplified peer-msgs parsing didn't distinguish between piece & raw data until the piece was done downloading.
2009-01-02 23:28:57 +00:00
Charles Kerr
4addf02246
(trunk libT) fix a typo that made jhujhiti giggle
2009-01-02 22:06:11 +00:00
Charles Kerr
d756d6b58f
(trunk libT) commit some debugging messages that were added to trackdown the multicast filter issue
2009-01-02 21:50:51 +00:00
Erick Turnquist
5086cbe47c
(trunk libT) use IN_MULTICAST macro
2009-01-02 21:45:55 +00:00
Charles Kerr
86d3e70121
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_ratecontrol, contain the it directly rather than a pointer to one allocated elsewhere on the heap.
2009-01-02 20:42:35 +00:00
Charles Kerr
d202c5ecea
(trunk libT) inline the ptrarray one-liners
2009-01-02 20:19:10 +00:00
Charles Kerr
5e9af46612
(trunk libT) make the tr_bandwidth macros into safer inline funcs. inline utils' one-liners.
2009-01-02 20:12:23 +00:00
Charles Kerr
b41cf9f231
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_bandwidth, contain the it directly rather than a pointer to one allocated elsewhere on the heap.
2009-01-02 19:56:06 +00:00
Charles Kerr
73f500e5be
(trunk libT) inline parts of peer-io and bandwidth, too
2009-01-02 17:46:22 +00:00
Charles Kerr
199e38dd66
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_completion, contain the it directly rather than a pointer to one allocated elsewhere on the heap.
2009-01-02 17:01:55 +00:00
Charles Kerr
d6b4db4a78
(trunk libT) add "inline" hint to several one-liner functions
2009-01-02 06:28:22 +00:00
Charles Kerr
5e806dc816
* add autoconf test AC_C_INLINE to do the Right Thing for "inline", "__inline__", and "__inline".
...
* make tr_isAddress(), tr_isDirection(), and a bunch of the tr_torrent() macro functions into true inline functions
2009-01-02 05:11:50 +00:00
Charles Kerr
0cd572a0da
(trunk libT) make tr_isAddress() and tr_isDirection() inline
2009-01-02 04:47:37 +00:00