Juliusz Chroboczek
7eda3ae2ec
Add stub for the DHT blacklisting support.
...
Using blacklists with Kademlia is not a good idea, which is why we
don't support it in Transmission. However, some people insist on
implementing the support in their own copies, this well-defined
hook ensures that at least they'll do it right.
2011-07-25 21:30:46 +00:00
Juliusz Chroboczek
17d1210b95
Reword debugging messages for the IPv4 DHT.
...
The IPv6 DHT is no longer expermiental, no need for the asymmetry.
2011-07-25 19:53:39 +00:00
Jordan Lee
7b71470ea0
(trunk libT) #4351 "DHT can't be uninitialized during a session" -- don't process incoming DHT messages if DHT is disabled. Don't process incoming UTP messages if UTP is disabled.
2011-07-12 12:26:24 +00:00
Jordan Lee
c7a43efc2b
(trunk libT) fix file descriptor leak in tr-dht.c
2011-03-31 03:37:24 +00:00
Jordan Lee
e5143dbf9c
(trunk libT) #4136 "r12181 causes excessive disk activity and logfile bloat" -- fixed.
2011-03-22 16:50:09 +00:00
Jordan Lee
b4d36aeb54
(trunk) #4138 "use stdbool.h instead of tr_bool" -- done.
2011-03-22 15:19:54 +00:00
Jordan Lee
6835374661
(trunk libT) move tr_dhtUpkeep() out of the announcer module
...
During shutdown, we can stop DHT almost immediately, but need to leave the announcer running for the DHT tracker event=stopped messages. So it doesn't make sense to keep them on the same periodic timer.
2011-03-17 12:34:43 +00:00
Jordan Lee
374ed10f3b
(trunk) it's bad form to #include so many system headers in libtransmission/utils.h...
2011-03-16 18:04:23 +00:00
Jordan Lee
9bf2434e14
(trunk) copyediting: remove trailing spaces from source code lines in daemon/ gtk/ libtransmission/ and utils/
2011-03-04 23:26:10 +00:00
Juliusz Chroboczek
6cf281a311
Make the initial DHT bootstrap more persistent.
...
We now try to contact the bootstrap nodes up to six times.
A better solution might be to reattempt bootstrap every half hour
or so. This might be beneficial to people whose connectivity
changes while Transmission is running.
2011-02-15 19:10:56 +00:00
Jordan Lee
441b8fa18b
(trunk libT) #3993 "Version (-V) option no longer outputs svn revision no." -- fixed.
...
update-version-h.sh tries to use {{{svnversion}}} when possible. But when it's not, it looks through the "$Id:" lines in the source file comments and uses the largest version number it finds. The new files tr-dht.[ch] didn't have the line of its $Id: comment formatted in the way update-version-h.sh expected. tr-dht.[ch]'s $Id: line has been homogenized to be like everyone else's...
2011-02-08 04:17:33 +00:00
Jordan Lee
fc1c5fe553
(trunk libT) silence some unused variable warnings from gcc when building with -DNDEBUG
2011-02-02 05:18:33 +00:00
Juliusz Chroboczek
62cb43a173
Don't complain about unexpected DHT packets.
2011-01-09 23:54:54 +00:00
Juliusz Chroboczek
cc44725949
#3634 Use dht-0.17
2011-01-09 23:45:04 +00:00
Juliusz Chroboczek
1ef888f9f1
Fix incorrect usage of event_new in UDP code.
...
Apparently you need to pass session->event_base as the first argument.
2011-01-09 23:14:17 +00:00
Juliusz Chroboczek
7af100fa7e
Update tr-{dht,udp} to libevent2.
2011-01-09 21:48:51 +00:00
Juliusz Chroboczek
aa3868df06
Move handling of UDP I/O to tr-udp.c.
2011-01-09 21:48:46 +00:00
Juliusz Chroboczek
0d8c10716c
Use the dht-0.16 API in tr-dht.c.
...
Recvfrom is now done outside the dht code, which makes it possible to share
the socket with UTP.
2011-01-09 21:48:43 +00:00
Juliusz Chroboczek
abcd56c034
Move creation of the UDP sockets to tr-udp.c.
2011-01-09 21:48:36 +00:00
Juliusz Chroboczek
5b2948cd17
Improve error messages in tr-dht.c.
2011-01-08 02:12:23 +00:00
Juliusz Chroboczek
fe2fd2efcf
Avoid a descriptor leak when binding the IPv6 DHT socket fails.
2011-01-08 01:09:12 +00:00
Charles Kerr
e5bb3205a1
(trunk) Join the 21st century and use only 1 space at the end sentences. This commit is nearly as important as the semi-annual ones that remove trailing spaces from the ends of lines of code... :)
2010-12-27 19:18:17 +00:00
Charles Kerr
ae84dc70dd
(trunk libT) #3836 "libevent2 support" -- finish moving to the libevent2 API mode. don't include the backwards-compatable API headers.
2010-12-24 08:58:41 +00:00
Charles Kerr
345b14adbc
(trunk) #3836 "libevent2 support" -- bump libevent2 requirement to 2.0.10. This will break the Mac build for a minute intil BMW applies his Mac patch
2010-12-20 02:07:51 +00:00
Charles Kerr
8e548aafcb
(trunk libT) #3687 "The V=XXXX key/val pair in our DHT messages seems to have no purpose" -- removed.
2010-10-30 01:48:45 +00:00
Daniel Lee
3f8748edfc
change 'v' field in dht to use major/minor version instead of svn revision
2010-10-13 17:09:05 +00:00
Charles Kerr
56e90f1457
(trunk) more "svn propset" tweaks for $Id$
2010-10-01 20:22:51 +00:00
Charles Kerr
5a8c94cfe4
(trunk libT) #3382 "2.01+ (10919) hangs after launch" -- fixed.
2010-07-01 16:09:47 +00:00
Charles Kerr
954a309d8f
(trunk) #3311 "MingW build of Transmission" -- apply more of rb07's diffs, though edited to lessen the inevitable #ifdefs
2010-06-30 21:24:36 +00:00
Charles Kerr
5ad7ed550f
(trunk) more win32 fixes from rb07 in #3311
2010-06-22 00:12:52 +00:00
Charles Kerr
08628333d1
(trunk libT) part of rb07's win32 portability patches from ticket #3311
2010-06-21 16:44:35 +00:00
Mitchell Livingston
ec687f14ad
#2738 Fix the IPv6 DHT broken by r10616
2010-05-02 12:48:33 +00:00
Charles Kerr
94a2ffac2b
(trunk libT) commit jch's patch for #2738 : "fix rebinding of the IPv DHT socket"
2010-05-01 19:55:45 +00:00
Charles Kerr
546bca723b
(trunk libT) #3159 "better decision-making when choosing which peers to initiate new connections with" -- experimental commit
2010-04-20 21:54:03 +00:00
Charles Kerr
5af66dffcd
(trunk libT) #3104 "tr-dht.c: signed port number" -- fixed in trunk for 2.00
2010-03-31 18:52:07 +00:00
Charles Kerr
e31b9d8fc5
(trunk libT) #2903 "Don't send DHT port messages to peers if we didn't advertise support for DHT in the handshake" -- fixed in trunk for 1.90
2010-02-14 19:35:09 +00:00
Charles Kerr
e03ad192c7
(trunk libT) demote the "Got N peers from tracker" and "Found N peers from DHT" messages from info to debug... there are just too many of them
2010-02-11 01:20:43 +00:00
Charles Kerr
6f68e30f37
(trunk libT) consistency tweak: rename tr_global{Lock,Unlock,IsLocked} as tr_session{Lock,Unlock,IsLocked}
2010-01-04 09:05:02 +00:00
Charles Kerr
283b6d6a36
(trunk libT) rename tr_wait() tr_wait_msec()
2010-01-01 22:30:36 +00:00
Charles Kerr
08af516e12
(trunk libT) unset DHT's ip4 and ip6 sockets on shutdown so that the libtransmission thread doesn't block on tr_dhtStatus() during shutdown
2010-01-01 22:28:50 +00:00
Charles Kerr
1eb0cdd7c6
(trunk libT) fix various minor compiler warnings that show up when you build libtransmission with NDEBUG defined
2009-12-28 23:27:17 +00:00
Charles Kerr
de9498f1ab
(trunk libT) #2669 "Apply IPV6_V6ONLY to the IPv6 DHT socket" -- committed jch's patch for 1.80
2009-12-15 16:48:26 +00:00
Charles Kerr
8cee197cac
(trunk libT) fix minor memory leak in libtransmission/tr-dht.c, found by valgrind
2009-12-14 17:46:00 +00:00
Charles Kerr
ed1df8beac
(trunk libT) removed dead code: tr_isTimeval(), tr_timevalMsec(), tr_timevalSet()
2009-12-12 01:05:29 +00:00
Charles Kerr
1f320b2ddd
(trunk) fix a couple of cases where we don't use the tr_snprintf() portability wrapper
2009-12-11 20:26:40 +00:00
Charles Kerr
33658647d6
(trunk libT) #2576 "IPv6 support for DHT (BEP #32 )" -- silence message "IPv6 DHT not ready." Reported by KyleK; fixed by jch
2009-11-29 18:31:36 +00:00
Charles Kerr
fc0a8b7c93
(trunk) #2614 : "incorrect memory usage when not using IPv6" -- accepted dht.c + tr-dht.c patches
2009-11-27 14:18:32 +00:00
Charles Kerr
1cbbcf9fa1
(trunk libT) jch's patches 0001 through 0004 for ticket #2576 , IPv6 support for DHT (BEP #32 )
2009-11-24 01:59:51 +00:00
Charles Kerr
06004319d7
(trunk) #2222 : revert r8967, as foreshadowed in http://trac.transmissionbt.com/ticket/2222#comment:20
2009-11-14 14:43:31 +00:00
Mitchell Livingston
dd5fa2e6b8
more typo fixes
2009-11-04 02:45:58 +00:00