Sébastien Blin
dd3de412fb
dht: move updateValues logic into network_engine
2020-04-28 13:55:29 -04:00
Sébastien Blin
4ad5e6c9ba
misc: clean
2020-04-28 13:55:29 -04:00
Sébastien Blin
e1c6fec581
dht: starts to add update and version support
2020-04-28 13:55:29 -04:00
Sébastien Blin
31da5b91fa
[WIP]net: add updateValues to replace Listen operations
...
Actually, packets are not retransmitted for listen operations. This
leads to some problems when they are already several values present
at one hash. Ideally, packets should be transmitted inside a request
to avoid packet loss and get all datas.
This patch breaks the compatibility with previous versions
2020-04-28 13:55:29 -04:00
Adrien Béraud
35348bf77f
dht: use default port for bootstraping
2020-04-24 17:45:40 -04:00
Adrien Béraud
f30d21e96f
move bootstrap logic from DhtRunner to Dht
2020-04-24 16:32:07 -04:00
Adrien Béraud
f4cba56b3c
dht: optimize getStatus()
2020-04-17 02:09:57 -04:00
Adrien Béraud
7155dc4fb7
stats: add search, cached node count
2020-04-16 02:08:00 -04:00
Adrien Béraud
c961e2e99f
dht: allow to configure max searches & store size
2020-04-16 02:08:00 -04:00
Adrien Béraud
a2cbef315a
dht: avoid crash in persistent put when logging
2020-02-22 19:59:36 -05:00
Adrien Béraud
5ffb5c628d
dht: avoid use-after-free when sending probe query
2020-02-14 13:52:55 -05:00
Adrien Béraud
a39e2443a0
dht: reuse probe query, avoid leak
2020-02-09 00:51:58 -05:00
Adrien Béraud
95028e3770
dht: always use pseudo-RNG for non-critical random numbers
2020-02-07 00:36:42 -05:00
Adrien Béraud
8597267c63
dht: add 'public stable' node configuration
2020-01-27 16:27:21 -05:00
Adrien Béraud
707fb39975
net: fix sending query in sendGetValues
2020-01-20 12:15:33 -05:00
Adrien Béraud
cbb2406a12
utils: improve duration display
2020-01-19 17:47:54 -05:00
Adrien Béraud
dc46c2274c
net: exponential backoff, randomize packet expiration time
2020-01-19 14:32:57 -05:00
Adrien Béraud
9096f650f5
dht: increase default max request rate to 8k req/s
2020-01-18 19:54:54 -05:00
Adrien Béraud
900655b11f
dht: give current time through periodic
2020-01-18 13:58:22 -05:00
Adrien Béraud
3793423b2f
dht: log cleanup
2020-01-17 15:57:32 -05:00
Adrien Béraud
0f9f623b31
dht: use unique_ptr for SearchNode
2020-01-17 12:47:14 -05:00
Adrien Béraud
481b1cb3b4
dht: use pseudo-random generator for value ids
2020-01-16 13:51:51 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -05:00
Linas Vepstas
c0f14ca59d
Fix duplicated, non-functional log message.
...
Inside the if-statement, the log message will always print zero.
Confusingly, its the same message as the one in the loop above it.
Make the message distinct.
2019-12-07 22:28:35 -05:00
Adrien Béraud
259986e786
network engine: don't throw in case of unknown transaction
2019-12-01 14:52:21 -05:00
Adrien Béraud
9daa7ec283
dhtrunner: default peer request rate to global/8
2019-11-11 12:58:11 -05:00
Adrien Béraud
cb7d7f6614
dht: allow to configure rate limiter
2019-11-07 16:43:04 -05:00
Adrien Béraud
f710df9675
proxy: cleanup
2019-10-31 13:44:05 -04:00
Adrien Béraud
4b061d0886
dht: cleanup
2019-08-02 19:58:43 -04:00
Adrien Béraud
84a9d899d5
dhtrunner: migrate to SockAddr, use default port if not set
2019-08-02 14:42:26 -04:00
Adrien Béraud
149b33ef57
dht: simplify error message to avoid use-after-move
2019-07-01 15:07:10 -04:00
Adrien Béraud
feb498305f
network engine: convert mapped IPv4
2019-06-22 18:37:58 -04:00
Adrien Béraud
8942e0d00e
dht: init parent class with logger
2019-06-09 19:07:04 -04:00
Adrien Béraud
120c017399
net: add DatagramSocket, UdpSocket transport
2019-06-07 14:14:15 -04:00
Adrien Béraud
e4516772ee
dht: log cleanup
2019-05-22 11:20:27 -04:00
Adrien Béraud
c7e2483160
dht: add logger to constructor
2019-05-22 00:47:25 -04:00
Adrien Béraud
e86d717e81
dht: make getPut() const
2019-04-05 10:49:35 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
215b44ca3b
search: don't store filter in search
...
Filter is not supported anymore at the search listen stage.
Filters are now stored and called by the op cache.
2019-03-17 17:30:30 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
313f54c840
dht: disable some verbose logs
2019-03-10 17:27:37 -04:00
Adrien Béraud
cdb721ade4
dht: move store logic to storage
2019-03-10 17:04:26 -04:00
Adrien Béraud
04850e1701
dht: add configuration to persist state
2019-03-10 16:39:16 -04:00
Adrien Béraud
a30f1b8032
dht: make exportNodes const
2019-03-10 16:39:16 -04:00
Adrien Béraud
ba2e179abe
dht: optimize get
2019-02-19 01:59:59 -05:00
Adrien Béraud
35c6a57526
dht: add synced status
2019-02-19 01:59:59 -05:00
Sébastien Blin
e5b56cc0a5
dht: link to tellListenerRefreshed
...
When a permanent put is refreshed, the node has to tell to its
remote listeners that the value is refreshed.
2019-01-09 13:34:51 -08:00
Adrien Béraud
c0e376e15a
dht: reduce log verbosity
2018-12-28 01:41:10 -05:00
Adrien Béraud
6d7f8004bf
connectivity change: reset routing table instead of searches
2018-12-26 10:28:30 -05:00