Simon Désaulniers
9e7babc707
changed Search::refill to progressive approach
...
In order to optimize the refill of a search with good SearchNode, the refill is
now done at each call of searchStep(). A "refill" will try to add more good
nodes to the search until the search has reached SEARCH_NODES good nodes.
2016-04-08 23:10:05 -04:00
Simon Désaulniers
e9bda23ae4
add Search::getNumberOfBadNodes() method
2016-04-08 23:10:05 -04:00
Simon Désaulniers
12f4139fcc
dht: removing good and expired nodes appropriately
...
When inserting a node and that the maximum of good nodes has been reached, a
good node must be removed. This is also a good time to remove an expired node
from the search if there is one.
2016-04-08 23:09:58 -04:00
Adrien Béraud
71b6998ea0
dht: step to clear announces in case of failure
2016-01-28 01:07:35 -05:00
Adrien Béraud
1d4d67038a
dht: fix compilation on older clang
2016-01-22 15:35:45 -05:00
Adrien Béraud
d5dcfa0889
dht: introduce and enforce a maximum storage size
...
The default storage limit is 64 MB
2016-01-22 02:01:07 -05:00
Adrien Béraud
b304418d43
dht: ensure search response include a token
2016-01-22 01:47:19 -05:00
Adrien Béraud
3d499bff14
dht: reset flags when reanouncing
2016-01-22 01:45:51 -05:00
Adrien Béraud
d6d72597be
dht: check value size before forging packet
2016-01-19 15:24:05 -05:00
Adrien Béraud
3ee22bb6d7
dht: avoid building oversized UDP packets
2016-01-19 15:24:05 -05:00
Adrien Béraud
9ee962bd21
dht: cleanup storage log
2016-01-19 15:23:37 -05:00
Adrien Béraud
a44b809513
dht: get token with find_nodes, use it for announces
2016-01-19 15:23:37 -05:00
Adrien Béraud
e00c8e9598
update copyright headers for 2016
2016-01-07 18:02:35 -05:00
Adrien Béraud
8d1c3f1bbe
dht: drop storage immediately after retransmission
2015-12-17 15:31:41 -05:00
Adrien Béraud
e102e2b673
dht: findStorage now returns iterator instead of pointer
2015-12-17 15:31:41 -05:00
Simon Désaulniers
38306eaec5
only one refill allowed before expiring search
2015-12-15 18:18:17 -05:00
Simon Désaulniers
04632a8288
fix findclosestnodes() (was inverted)...
2015-12-15 18:18:14 -05:00
Simon Désaulniers
2dcaef5c97
accept storing values based on XOR proximity to id.
2015-12-15 18:17:37 -05:00
Adrien Béraud
0076ae001c
dht: drop value after successfull announce
2015-12-10 17:26:39 -05:00
Adrien Béraud
9a301569a4
dht: use proper value in log
2015-12-10 15:06:25 -05:00
Adrien Béraud
328a61df00
dht: preserve value creation time
2015-12-10 13:18:55 -05:00
Adrien Béraud
04aa3d3dba
dht: improve value storage log
2015-12-10 13:18:55 -05:00
Adrien Béraud
7c1beeaa5c
Merge pull request #17 from savoirfairelinux/yomgui-patch-dht
...
Simplify the simplification
2015-12-07 12:01:58 -05:00
Simon Désaulniers
725ca7a4d6
only remove Announce upon value expiration time
2015-11-16 22:15:06 -05:00
Adrien Béraud
d1c4d2446e
add Simon Désaulniers to author lists
2015-11-13 16:45:43 -05:00
Adrien Béraud
7e346cfcb8
update license terms
...
* removed OpenSSL exception
(OpenDHT doesn't make use of OpenSSL)
* properly capitalize "Savoir-faire Linux"
2015-11-08 16:06:30 -05:00
Adrien Béraud
8575bd4f96
dht: allow to specify address family for getPublicAddress
2015-11-06 01:49:13 -05:00
Adrien Béraud
a340943994
dht: clear bad nodes on connectivity change
2015-11-06 00:51:58 -05:00
Adrien Béraud
5e265505e9
fix some clang warnings
2015-11-04 00:50:12 -05:00
Simon Désaulniers
f4162664c3
remove periodic Announce repeat functionnality
2015-11-02 16:45:50 -05:00
Simon Désaulniers
4bee62741f
data persistence for all data
2015-11-02 16:45:50 -05:00
Simon Désaulniers
c7298088d9
getNodesStats resets 0, shutdown method in Dht API
2015-11-02 16:45:50 -05:00
Adrien Béraud
184dc17aa8
value: improve serialization backward compatibility
2015-10-24 01:40:59 -04:00
Adrien Béraud
c2896afebf
dht: fix message parsing with msgpack 1.0
2015-10-17 02:56:28 -04:00
Adrien Béraud
b2689adfa7
dht: improve parsing robustness
...
Accept msgpack STR, ARRAY and BIN formats when
parsing binary data.
2015-10-16 17:18:12 -04:00
Adrien Béraud
5815fa01f7
dht: fix backward compatibility
...
Pack "token" as ARRAY, as it was with msgpack 1.0,
instead of BIN.
2015-10-16 17:18:12 -04:00
Adrien Béraud
42c32f98c8
dht: count incoming packets
2015-10-16 13:44:18 -04:00
Guillaume Roguez
0a9bd2b783
Simplify the simplification
...
lol!
2015-10-13 18:37:05 -04:00
Maitesin
08a5ce387b
Simplified a method.
2015-10-11 19:00:06 +01:00
Adrien Béraud
eea097961a
dht: add message counting
2015-10-06 11:58:26 -04:00
Adrien Béraud
80363a9343
dht: header cleanup
2015-09-30 23:05:34 -04:00
Adrien Béraud
ca8fb2b3ec
dht: revert to 15-45 minutes secret rotation
2015-09-01 22:47:25 +02:00
Adrien Béraud
461dfb29f3
dht: expire search with only candidates
2015-09-01 18:10:30 +02:00
Adrien Beraud
6e6882ca7a
dht: cleanup
2015-09-01 18:10:00 +02:00
Adrien Beraud
0ea48ed1de
dht: remove custom memmem
2015-09-01 17:42:07 +02:00
Adrien Béraud
2e38a307f9
log: unify format
2015-09-01 17:42:07 +02:00
Adrien Béraud
4096e7ff03
dht: bootstrap local id on first connection
2015-09-01 16:46:42 +02:00
Adrien Béraud
98908f7284
dht: add version to UA
2015-09-01 16:44:21 +02:00
Adrien Béraud
ac08beb582
dht: search own id
2015-08-24 16:38:40 +02:00
Adrien Béraud
fe3ded9d0f
dht: my_v cleanup
2015-08-23 17:36:24 +02:00