Adrien Béraud
c8eb704a92
dhtrunner: prevent integer underflow in UDP rx callback
2022-04-19 14:51:24 -04:00
Adrien Béraud
724c3e431c
dht: notify listeners when value is removed because of limits
2022-04-18 17:19:32 -04:00
Adrien Béraud
a9ddf49ecc
storage: check size before returning oldest
2022-04-18 17:18:08 -04:00
Adrien Béraud
ed972fd365
dht: allow to store up to 64k values per hash
2022-04-15 20:12:48 -04:00
Adrien Béraud
75834fb08f
dht: fix potential of-by-one largest computation, cleanup
2022-04-15 20:12:48 -04:00
Adrien Béraud
9991c976ff
dht: prevent potential use-after-free in storageChanged
2022-04-15 20:12:48 -04:00
Adrien Béraud
92b08bbbc9
dht: pass value directly to storageChanged
2022-04-15 20:12:48 -04:00
Adrien Béraud
4f9b50dd60
print_addr: use ostringstream insted of stringstream
2022-04-15 19:18:24 -04:00
Adrien Béraud
d6d73efa37
dht: update storage bucket on refresh
2022-04-15 19:14:12 -04:00
Adrien Béraud
405b8739ab
dhtrunner: always call opEnded once per op
2022-04-14 20:12:55 -04:00
Adrien Béraud
12b75a612c
misc: fix various clang-tidy warnings
2022-04-06 12:18:20 -04:00
Adrien Béraud
7915b987ec
misc: use more string_view
2022-04-02 17:14:36 -04:00
Adrien Béraud
1bc65bc5f5
network engine: use string_view for better performance
2022-04-01 11:04:59 -04:00
Adrien Béraud
a22566599c
proxy client: fix building Listener map
2022-03-29 14:47:42 -04:00
Adrien Béraud
f9b2285593
use string view literals where relevant
2022-03-29 14:47:01 -04:00
Adrien Béraud
9c2268fa41
fix various cppcheck warnings/errors
2022-03-29 10:15:00 -04:00
Adrien Béraud
d4e6fd545a
search: use const for iterator comparison
2022-03-24 21:33:51 -04:00
Adrien Béraud
21a71b1559
proxy server: support c++17
2022-03-23 13:35:30 -04:00
Adrien Béraud
ca5455302d
value: support std::string_view
2022-03-23 13:35:14 -04:00
Adrien Béraud
290e8594b6
update copyright
2022-03-21 11:32:56 -04:00
Adrien Béraud
c59f951e5a
update copyright
2022-03-10 19:51:25 -05:00
Adrien Béraud
5654816f5a
dhtrunner: re-throw exception directly in init
2022-03-10 19:43:10 -05:00
Adrien Béraud
b0fb476d97
dhtrunner: pass function argument by value
2022-03-10 19:42:37 -05:00
Adrien Béraud
de68a47a16
dhtrunner: handle exception during initialization
2022-03-09 14:32:22 -05:00
Adrien Béraud
ac51c2300e
dht: remove canceled tasks from scheduler
2022-02-27 03:34:36 -05:00
Adrien Béraud
5dbade3d0b
value cache: move to lambda
2022-02-26 22:16:15 -05:00
Adrien Béraud
c2415f38fa
dht: avoid job & search leak
2022-02-24 13:33:42 -05:00
Adrien Béraud
1ae28e07b6
storage: cleanup
2022-02-19 10:53:31 -05:00
Adrien Béraud
bc32f848cb
thread pool: cleanup
2022-02-19 10:53:31 -05:00
Adrien Béraud
32f72c245d
dht: add max bootstrap period
2022-02-19 09:23:57 -05:00
Adrien Béraud
043ef8da72
dht: reset bootstrap period on connectivity change
...
Also starts a bootstrap if disconnected.
2022-02-19 09:23:57 -05:00
Adrien Béraud
6812b733bb
dht: respect exponential backoff
2022-02-19 09:23:57 -05:00
Adrien Béraud
2ec28dcb83
dhtrunner: use configured logger for dropped packets
2022-02-19 09:23:57 -05:00
Adrien Béraud
75f1b07e7a
crypto: cleanup
2022-01-26 14:16:33 -05:00
Adrien Béraud
f191c4f636
storage: 0-init size_diff
2022-01-26 14:16:33 -05:00
Sébastien Blin
1b2bc7b1e3
crypto: add parameter to change Certificate's validity period
...
This allow to create certificate with a different validity than
10 years and be able to change the expiration of a certificate
2022-01-19 14:51:45 -05:00
Sébastien Blin
dbbfdaab0f
proxyclient: onConnectedCallbacks must be launched if started by notif
2021-10-27 13:45:30 -04:00
Adrien Béraud
2fbafc3591
crypto: cache Certificate Id
2021-09-16 11:08:02 -04:00
Sébastien Blin
2a50f85a30
proxy_server: set expiration for iOS devices
2021-09-10 10:21:31 -04:00
Sébastien Blin
26b71ab993
proxyclient: do not play with stop when resubscribing
...
At this point we do not care for the request. Subscribes are
instantaneous, so the request will be terminated at this point.
Changing the stop status can cause some push notifications to be
dropped if coming at this moment.
2021-09-10 10:21:31 -04:00
Sébastien Blin
04a78445c6
dht_proxy_server: increase ttl for push to 24 hours
...
If the android device is offline during more than 10 minutes, it
can misses push notifications and cause an incorrect state with
values not expired even if the re-subscribe is correct.
2021-09-10 10:21:31 -04:00
Adrien Béraud
e58d09e5da
dht: always display value ID as hex
2021-08-05 12:42:29 -04:00
Adrien Béraud
0c00544798
remove embedded argon2, HTTP_PARSER_FORK
2021-06-09 13:57:10 -04:00
Adrien Béraud
ba9a445263
securedht: clenup
2021-06-07 14:45:58 -04:00
Adrien Béraud
b668d6ad68
dhtrunner: add putEncrypted with public key
2021-06-07 14:45:58 -04:00
Adrien Béraud
29fab5560f
dhtrunner: add getPublicKey()
2021-06-07 14:45:58 -04:00
Adrien Béraud
8aef63ce4a
crypto: cache public key
2021-06-07 14:45:58 -04:00
Adrien Béraud
1ea7a2994e
value: use non-const PublicKey
2021-06-07 14:45:58 -04:00
Adrien Béraud
d9ff95da49
Revert "dhtrunner: force execution of pending ops on shutdown"
...
This reverts commit c8a0b443f3 .
2021-06-07 14:45:58 -04:00
Adrien Béraud
c8a0b443f3
dhtrunner: force execution of pending ops on shutdown
2021-06-03 16:54:31 -04:00