Charles Kerr
1c71e622e1
(trunk libT) minor cleanup: use symbolic name instead of magic numbers; use tr_bool instead of int
2008-12-30 02:43:51 +00:00
Charles Kerr
640c952ce8
(trunk libT) fix r7535 bug reported by Rolcol
2008-12-30 02:42:45 +00:00
Charles Kerr
cad0ec892c
(trunk libT) avoid an unnecessary evbuffer_new() + evbuffer_free() pair in message logging
2008-12-30 02:36:17 +00:00
Charles Kerr
68ad6f452c
(trunk libT) probable fix for #1631
2008-12-30 01:02:53 +00:00
Charles Kerr
f761311018
(trunk libT) avoid a few more unnecessary malloc() + free() pairs
2008-12-30 00:56:10 +00:00
Charles Kerr
246efcbca2
(trunk libT) fix obsolete `iobuf' reference. (wereHamster)
2008-12-29 21:19:31 +00:00
Charles Kerr
a8e15578f3
(trunk libT) use torrent's unique ID as the torrent's lookup key
2008-12-29 21:17:48 +00:00
Charles Kerr
eff510da18
(trunk libT) simplify web.c's remove_finished_tasks() a bit
2008-12-29 19:02:12 +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
9ea0489471
this should've been in r7529
2008-12-29 18:12:25 +00:00
Charles Kerr
415f04059f
(trunk libT) wrap tr_inf(), tr_msg(), tr_dbg() calls inside a check to see if that debugging level is active. That way that function calls in the vararg list won't be invoked unless that level of verbosity is actually turned on.
2008-12-29 18:11:56 +00:00
Charles Kerr
c52d9fedab
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_publisher, contain the it directly rather than a pointer to one allocated elsewhere on the heap.
2008-12-29 18:10:07 +00:00
Charles Kerr
3a01d2e619
(trunk libT) recycle the tr_list nodes when possible
2008-12-29 17:28:14 +00:00
Charles Kerr
e7ffb4da03
Add "SD" to the clients list as Xunlei as reported by malucas72 in the forums.
2008-12-29 16:34:59 +00:00
Charles Kerr
7a4002dd3a
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_bitfield, contain it directly rather than a pointer to one allocated elsewhere on the heap.
2008-12-29 09:51:54 +00:00
Charles Kerr
427f639664
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_ptrArray, contain the tr_ptrArray directly rather than a pointer to one allocated elsewhere on the heap.
2008-12-29 08:54:36 +00:00
Charles Kerr
db381a5e40
(trunk libT) revert #7517 since it didn't do any good. disable http connection reuse.
2008-12-29 07:51:09 +00:00
Charles Kerr
1582135e3c
(trunk libT) experimental test for #1631 in web.c::setsock()
2008-12-26 20:14:47 +00:00
Charles Kerr
f0efd7fea8
(trunk libT) #1627 : OSX mutex lockup in 141 and up to 7490
2008-12-24 17:45:27 +00:00
Charles Kerr
6f8e5352ab
(trunk libT) fix connectivity error reported by Stargazer. Also, add more debug statements to track down errors like this in the future
2008-12-24 02:50:08 +00:00
Charles Kerr
460f862dbc
(trunk libT) add yet another ACL diagnostic message
2008-12-23 21:34:07 +00:00
Charles Kerr
dfcc9173e5
(trunk libT) #include "session.h" cleanup from wereHamster
2008-12-23 17:27:15 +00:00
Charles Kerr
82d349d221
(trunk libT) fix minor r7474 issue
2008-12-23 17:23:07 +00:00
Charles Kerr
c4e11a12e3
(trunk libT) socket performance tweak by wereHamster
2008-12-23 17:11:31 +00:00
Charles Kerr
303356d110
(trunk) #1029 : When removing local data only remove data from the torrent
2008-12-23 16:04:11 +00:00
Charles Kerr
5d1c109fc4
(trunk libT) speed improvments from wereHamster
2008-12-22 19:16:06 +00:00
Charles Kerr
55f263312f
(trunk) patch from wereHamster to finish off tr_handle
2008-12-22 19:14:43 +00:00
Charles Kerr
94a491aefb
(trunk libT) remove unused functions tr_list_insert_sorted(), tr_list_foreach(). make tr_list_find_data() private.
2008-12-22 17:35:10 +00:00
Charles Kerr
d142a075c4
(trunk libT) fix a Windows portability bug reported by Alexey
2008-12-22 05:19:52 +00:00
Charles Kerr
1310fea91e
(trunk libT) peer-io.c: remove dead code and get rid of a couple of GOTOs
2008-12-22 04:55:07 +00:00
Charles Kerr
acdd8c860c
(trunk libT) minor cleanups found while diffing for backport to 1.4x in r7455
2008-12-22 00:52:44 +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
Erick Turnquist
38efb62100
add some debugging stuff to track down where some bogus addresses are coming from
2008-12-21 19:13:52 +00:00
Charles Kerr
2b0ece7614
(trunk libT) remove tr_peermsgs.minActiveRequests based on wereHamster's feedback
2008-12-21 18:31:28 +00:00
Charles Kerr
8556ce653f
(trunk libT) comments, tr_bool correctness, better runtime tests.
2008-12-21 18:15:00 +00:00
Charles Kerr
fefa352b11
(trunk libT) remove unused PEER_PULSE_INTERVAL
2008-12-21 17:51:46 +00:00
Charles Kerr
f77ae353bb
(trunk) configure.ac portability tweak suggested by fulgas
2008-12-21 00:22:41 +00:00
Charles Kerr
cb5d259f21
(trunk libT) fix an r7441 function pointer error reported by fulgas in #transmission
2008-12-21 00:05:54 +00:00
Charles Kerr
72ded3b272
try to rework the bandwidth code yet again s.t. it satisfies all three: (1) fairly distributes bandwidth across all peers, (2) scales well in high-bandwidth situations, (3) is good at hitting and staying at bandwidth limits/goals
2008-12-20 22:19:34 +00:00
Erick Turnquist
a68764fcba
(trunk libT) Don't log two "errors" we expect to see from time-to-time.
...
EAFNOSUPPORT: On OS X, socket() incorrectly throws EAFNOSUPPORT for certain
IP/Port combinations. There is nothing we can do about this.
ENETUNREACH: #1606 is evidence that some trackers return IPv6 peers when
contacted over IPv4. This code will silently ignore "network unreachable"
errors for IPv6 connections.
2008-12-20 08:51:32 +00:00
Erick Turnquist
49b84fb805
(trunk libT) make sure we don't block IPv6 peers, which aren't included in bluetack bocklists
2008-12-20 02:56:44 +00:00
Erick Turnquist
72ee19dcca
(trunk libT) Refactor ipv6 bind socket check
...
This will let the RPC server use the same test mechanism eventually. Networking code belongs in net.c anyway.
2008-12-18 05:55:22 +00:00
Charles Kerr
53b730420f
another test commit for vraa.. this is just an experiment; probably eats a lot of memory
2008-12-18 03:27:07 +00:00
Charles Kerr
d4b4f39754
test commit for vraa
2008-12-18 03:22:08 +00:00
Charles Kerr
d125ebd86a
(trunk libT) turn off some testing log messages
2008-12-17 14:15:19 +00:00
Charles Kerr
3a61b0c6eb
(trunk libT) tweak the new peer IO code a bit to handle EINPROGRESS
2008-12-17 13:29:03 +00:00
Charles Kerr
de24179d05
(trunk libT) fix assertion error reported by Rolcol earlier today in #transmission
2008-12-17 03:38:02 +00:00
Erick Turnquist
be4dc0d674
(trunk libT) use an enum tr_address_type instead of uint8_t for tr_address.type
2008-12-17 01:39:24 +00:00
Charles Kerr
1a7ab297ea
(trunk libT) more runtime safety checks
2008-12-16 23:31:05 +00:00