Adrien Béraud
0c11c25c66
infohash: make toHex inline
2020-11-17 11:34:40 -05:00
Adrien Béraud
e970cac4d7
infohash: expose toHex
2020-11-16 14:58:35 -05:00
Adrien Béraud
c84fac6823
http: add Request::await
2020-10-28 12:23:53 -04:00
Adrien Béraud
e2b39dd3a0
http/request: make terminate public
2020-06-30 10:42:49 -04:00
Sébastien Blin
b41f5b04f5
proxyclient: only restart listeners when connected
...
restartListeners() must be called only when the proxy is connected. Else, the
client will receive a lot of http errors
2020-06-29 15:18:58 -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
f72bfc9df2
http: use hostname for certificate authentication
2020-06-19 15:21:34 -04:00
Adrien Béraud
c221cfdafe
http/Request: add get json constructor
2020-06-15 17:47:32 -04:00
Seva
acbf7cfcf0
crypto: cleanup ocsp api & tests
2020-06-15 17:47:32 -04:00
Seva
8250116946
crypto: embed ocsp response into class
2020-06-15 17:47:32 -04:00
Seva
45e9458373
crypto: add get ocsp response in readable format
2020-06-15 17:47:32 -04:00
Seva
2623b86274
crypto/cert: add generate ocsp request & verify response
2020-06-15 17:47:32 -04:00
Seva
e26256b819
crypto: add get ocsp response certificate status
2020-06-15 17:47:32 -04:00
Seva
a7a3d23f50
crypto: add get serial number of cert.
2020-06-15 17:47:32 -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
Sébastien Blin
3e24ea1212
rng.h: fix build
2020-05-25 18:50:35 -04:00
Adrien Béraud
87f48f0a28
getSeededRandomEngine: retry in case of exception
2020-05-25 15:18:51 -04:00
Sébastien Blin
9292c1116c
proxy: count permanent put values by hash in stats
2020-05-24 01:25:31 -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
Adrien Béraud
19ccc3a327
proxy server: restart timers on resubscribe
2020-05-19 19:50:20 -04:00
Adrien Béraud
4587c0925f
utils: always check length in findMapValue
2020-05-19 19:50:20 -04:00
Adrien Béraud
a27815b4a9
proxy server: persist ops on disk
2020-05-19 19:50:20 -04:00
Adrien Béraud
5daaf372b4
proxyserver: generate id before put
2020-05-11 12:31:07 -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
Adrien Béraud
7f832ba9d5
NodeInfo: add bound ports
2020-04-29 16:00:02 -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
7bf9f861a5
dht: send update values for listeners
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
01bcb1a750
network engine: completely remove TransId
2020-04-24 18:46:46 -04:00
Adrien Béraud
f30d21e96f
move bootstrap logic from DhtRunner to Dht
2020-04-24 16:32:07 -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
c92f553a24
network engine: retransmit value parts
2020-03-30 17:54:50 -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