Adrien Béraud
7764620460
proxy client: fix warning
2020-01-19 14:32:57 -05:00
Adrien Béraud
5af0f0c3d0
proxy server: flush response after all values are sent
2020-01-19 14:32:57 -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
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
2900b1d17f
net: limit recycled packet queue max size
2020-01-18 13:56:50 -05:00
Adrien Béraud
69e71dbeaa
SecureDht: cleanup
2020-01-17 15:58:22 -05:00
Adrien Béraud
3793423b2f
dht: log cleanup
2020-01-17 15:57:32 -05:00
Adrien Béraud
b012878488
dhtrunner: set logger in setLogger
2020-01-17 15:57:32 -05:00
Adrien Béraud
c1005fa334
request: free message memory on clear
2020-01-17 15:17:35 -05:00
Adrien Béraud
0f9f623b31
dht: use unique_ptr for SearchNode
2020-01-17 12:47:14 -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
481b1cb3b4
dht: use pseudo-random generator for value ids
2020-01-16 13:51:51 -05:00
Adrien Béraud
7f1d960a56
dhtrunner: add async/non-blocking version of getNodeInfo
2020-01-16 13:24:37 -05:00
Adrien Béraud
91e1e942ab
Update peer_discovery.cpp
2020-01-15 23:16:36 -05:00
Adrien Béraud
ae89365f23
Update peer_discovery.cpp
2020-01-15 23:16:36 -05:00
Adrien Béraud
93cd8d541c
Update peer_discovery.cpp
2020-01-15 23:16:36 -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
10d48137a9
proxy server: update stats on node info
2020-01-15 17:04:12 -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
0864ac9a39
proxy server: handle put session id provided after first request
2020-01-10 12:26:57 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
dea4b202bf
proxy server: make json type explicit
2020-01-03 15:10:22 -05:00
Adrien Béraud
dc2f354652
proxy: use timestamps to handle reordered notifications
2020-01-03 14:47:22 -05:00
Sébastien Blin
87041e301f
proxyclient: refresh put on restartListeners
...
There is no need to check if the put is ok or not before refreshing it. Indeed,
the first successful put will make the ok flag to true. But, if an expiration
is missed (when not connected for example), the put will not be refreshed when
the connectivity will change (moreover, server and client can have different
timeouts).
2020-01-03 11:39:05 -05:00
Sébastien Blin
189f94442e
dhtproxyclient: setPushNotification before first permanent put
...
When SecureDHT is initialized, a permanent put is done to announce the node
and then the push token is set. This means the the first permanent put will not
get expirations notification because it's considered as a non push device's put.
We should inject the push token as soon as possible.
2020-01-03 11:39:05 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -05:00
Adrien Béraud
6a7ad871e2
value: toString prints raw data if text/plain
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
2dbf57d36b
Update README.md
2.0.0beta3
2019-12-16 23:42:31 -05:00
Adrien Béraud
5438d50578
proxy: add session token
2019-12-16 16:37:07 -05:00
Adrien Béraud
548255073f
docker: build c bindings, use asio 1.12
2019-12-16 12:22:05 -05:00
Adrien Béraud
abaf091772
c binding: fix build
2019-12-16 11:41:49 -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
1f672773ba
proxy server: respect value priority for push notifications
2019-12-14 13:02:07 -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
c1e2a368a8
docker: add ssl, install http-parser to /usr
2019-12-13 16:24:46 -05:00
Adrien Béraud
c62f27c929
tools: add missing include
2019-12-12 17:00:35 -05:00
Adrien Béraud
ec0c3d4d25
docker: build asio without tests and examples
2019-12-12 15:04:45 -05:00