Adrien Béraud
0b4caeda73
dht: don't send unnecessary findNode
2021-03-09 17:43:35 -05:00
Adrien Béraud
b5b4eea253
dht: reschedule search step
2020-07-06 10:26:08 -04:00
Adrien Béraud
cfa21df8b3
http: cleanup, always verify host in TLS mode
2020-06-29 12:12:22 -04:00
Adrien Béraud
323a2b5093
dht: move socket to SearchNode
2020-06-15 17:46:43 -04:00
Adrien Béraud
563811ebf8
dht: add error handler for sendRefreshValue
2020-06-15 17:46:43 -04:00
Adrien Béraud
190c7f2063
network engine: complete request in case of error
2020-06-15 17:46:43 -04:00
Adrien Béraud
15fbfdebcc
dht: only load id if set in configuration
2020-05-22 12:28:25 -04:00
Adrien Béraud
15eb221cd1
dht: save id, port when saving state
2020-05-22 12:15:10 -04:00
Adrien Béraud
7d3781acc8
dht: use pseudo-rng for ID generation
2020-05-22 12:14:47 -04:00
Sébastien Blin
28b5893239
listener: fully migrate to requests
...
This patch migrates tellListenerRefreshed and tellListenerExpired
to the new behavior
2020-05-05 10:38:03 -04:00
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