Adrien Béraud
6f05112970
dht: add node metrics
...
Provides info about internal dht structures
2020-03-30 14:18:41 -04:00
Adrien Béraud
a1d62fd062
stats: add search, cached node count
2020-03-30 14:18:23 -04:00
Adrien Béraud
81131f1c4e
utils: check time bounds
2020-03-25 23:00:16 -04:00
Adrien Béraud
f445b2536d
http: handle redirects
2020-02-12 16:45:25 -05:00
Adrien Béraud
57528e7aab
scheduler: don't sync time on run
2020-02-08 22:04:50 -05:00
Adrien Béraud
ceb35c05c1
securedht: add option to disable cache
2020-02-08 20:27:44 -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
1b81d707f3
value: fix potential crash in contentEquals
2020-01-27 12:13:17 -05:00
Adrien Béraud
56db1bba19
proxy server: merge identical put requests
2020-01-22 15:56:48 -05:00
Adrien Béraud
3490b19fe3
proxy client: cleanup
2020-01-22 13:15:37 -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
ec8beec427
proxy server: update stats on startup
2020-01-19 14:32:57 -05:00
Adrien Béraud
7b8ebbc54d
proxy server: catch more exceptions, cleanup
2020-01-19 14:32:57 -05:00
Adrien Béraud
dc46c2274c
net: exponential backoff, randomize packet expiration time
2020-01-19 14:32:57 -05:00
Adrien Béraud
052ed1f58c
proxy server: handlePrintStats on startup
2020-01-18 22:20:01 -05:00
Adrien Béraud
900655b11f
dht: give current time through periodic
2020-01-18 13:58:22 -05:00
Adrien Béraud
2900b1d17f
net: limit recycled packet queue max size
2020-01-18 13:56:50 -05:00
Adrien Béraud
b012878488
dhtrunner: set logger in setLogger
2020-01-17 15:57:32 -05:00
Adrien Béraud
2cfebdf9fa
net: use packet lists and recycle old packet structures
2020-01-17 12:26:03 -05:00
Adrien Béraud
7f1d960a56
dhtrunner: add async/non-blocking version of getNodeInfo
2020-01-16 13:24:37 -05:00
Paymon
9487bc5e42
implement connectivity change in peer discovery
...
this makes peer discovery pub/sub on connectivity change, it aims to
make peer discovery more energy efficient.
also, stop echo'ing.
TODO:
in its current implementation however, peer_discovery operates in the
dark; it doesn't know routes available to it (v4 vs v6); nor does it
know of the state of the link(s) (UP vs. DOWN) and therefore it merely
tries to, on connectivity change, (re)pub/sub on previous ip version
routes.
IDEA:
open an interface to kernel so that peer discovery, and perhaps others,
can learn about the routes available to them.
don't leave
add query() and direct publish(endpoint)
check if peer discovery was request (run and compile time)
add try/catch routine to DomainPeerDiscovery's constructor
2020-01-15 23:16:36 -05:00
Adrien Béraud
5b15fdeeef
proxy server: use shared_ptr for stats, remove statsMutex_
2020-01-15 13:54:24 -05:00
Adrien Béraud
3ba43c80a2
http: add weak_ptr to Request in Response
2020-01-15 11:45:26 -05:00
Adrien Béraud
16333f4224
http: add mutex to Request, Connection
2020-01-15 11:45:03 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
dc2f354652
proxy: use timestamps to handle reordered notifications
2020-01-03 14:47:22 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -05:00
Adrien Béraud
99890fca64
proxy server: update sessionId when necessary
2019-12-19 14:20:03 -05:00
Adrien Béraud
5438d50578
proxy: add session token
2019-12-16 16:37:07 -05:00
Adrien Béraud
7094b79714
crypto: add PublicKey::pack(uint8_t* out, size_t* out_len)
2019-12-14 15:29:42 -05:00
Adrien Béraud
374fdd6cc9
proxy: send normal priority push message for value expiration
2019-12-14 13:02:07 -05:00
Adrien Béraud
54b1314ab8
value: optimize json parsing
2019-12-14 13:02:07 -05:00
Adrien Béraud
51c35d8b54
value: add priority
2019-12-14 13:02:07 -05:00
Adrien Béraud
fea736428e
msgpack: take const reference in unpack
2019-12-14 13:01:24 -05:00
Adrien Béraud
2d358adf0e
utils: add findMapValue(string)
2019-12-14 13:00:13 -05:00
Adrien Béraud
26c2e16a42
value: optimize json parsing
2019-12-14 00:41:41 -05:00
Adrien Béraud
e8b385c220
utils: optimize findMapValue
2019-12-13 23:57:22 -05:00
Adrien Béraud
9565adf693
proxy server: always depend on jsoncpp
2019-12-12 14:51:59 -05:00
Adrien Béraud
38644fc934
includes: don't include proxy server, pht by default
2019-12-12 14:44:53 -05:00
Adrien Béraud
e5d248bcd0
peer discovery: use asio
2019-12-09 03:28:45 -05:00
Adrien Béraud
05a66cc1f1
proxy client: use common jsonReader
2019-12-07 22:22:37 -05:00
Adrien Béraud
77a377a406
http: add OnDone callback
2019-12-07 16:23:08 -05:00
Adrien Béraud
dd3c789916
proxy server: 0-initialize fields
2019-12-07 16:23:08 -05:00
Adrien Béraud
5b87090cab
http: use http_parser parsing logic
2019-12-07 16:23:08 -05:00
Adrien Béraud
c4aa272dbb
http/request: add constructor
2019-12-05 18:39:39 -05:00
Adrien Béraud
f331f39c77
c wrapper: add dht_privatekey_export
2019-12-05 18:35:43 -05:00
Adrien Béraud
36857c1f3d
http/request: add aborted flag and actual status code
2019-12-03 16:21:04 -05:00
Adrien Béraud
83f2b272a7
dhtrunner: add ongoing op count to node info
2019-12-01 15:07:35 -05:00