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
Adrien Béraud
f6d26757fa
dhtrunner: wait for current ops to complete on shutdown
2019-12-01 14:53:36 -05:00
Adrien Béraud
476d0bca4f
proxy client: lock while canceling requests
2019-12-01 14:52:42 -05:00
Adrien Béraud
913cb543c8
crypto: improve exception types
2019-11-30 19:42:02 -05:00
Adrien Béraud
fe11285a03
http: close on request end with Connection: close, cleanup
2019-11-30 18:11:00 -05:00
Adrien Béraud
fb34770a54
http: reuse connection istream, cleanup
2019-11-30 17:21:52 -05:00
Adrien Béraud
4a909419e9
http: handle Request lifetime when sharing resolver/connection
2019-11-30 17:21:52 -05:00
Adrien Béraud
28bf78408d
network utils: fix some race conditions
2019-11-26 12:24:37 -05:00
Adrien Béraud
7ed6f74e6b
proxy_server: add mutex to protect requests
2019-11-26 12:24:28 -05:00
Adrien Béraud
cf6d9fd8c2
proxy client: add lock for requests
2019-11-25 15:43:23 -05:00
Adrien Béraud
5df34bb752
http: use atomic ids
2019-11-25 15:42:45 -05:00
Adrien Béraud
8a18c591e9
http: initialize connection type, cleanup
2019-11-12 16:45:00 -05:00
Adrien Béraud
01f2ad9ea4
tools: show connectivity change in log
2019-11-11 11:54:44 -05:00
Adrien Béraud
cdd035b801
rate limiter: cleanup
2019-11-07 19:17:27 -05:00
Adrien Béraud
cb7d7f6614
dht: allow to configure rate limiter
2019-11-07 16:43:04 -05:00
Adrien Béraud
f5a6801ab9
value: cleanup
2019-11-07 11:52:27 -05:00
Adrien Béraud
0049ba92e6
thread pool: retransmit exception through future
2019-11-07 11:51:44 -05:00
Adrien Béraud
e2d7dbc293
proxy client: declare mutex before protected objects
2019-11-05 16:39:03 -05:00
Adrien Béraud
bc84655f42
proxy server: update for Restinio v.0.6.0.1
2019-10-31 16:00:51 -04:00
Adrien Béraud
f710df9675
proxy: cleanup
2019-10-31 13:44:05 -04:00
Adrien Béraud
e4853bd29c
proxy: use common Json builder
2019-10-30 14:17:42 -04:00
Adrien Béraud
6863800cfb
dhtrunner: allow to cancelPut with value
2019-10-30 11:33:33 -04:00
Adrien Béraud
1f387a0e95
proxy client: resolve again on connectivity change
2019-10-30 11:33:16 -04:00
Adrien Béraud
144fa7ddc8
dhtrunner: allow permanent put for signed/encrypted values
2019-10-28 17:35:19 -04:00
Adrien Béraud
c0e117871e
c wrapper: allow retrieving value owner and recipient
2019-10-28 15:25:31 -04:00
Adrien Béraud
22741436e3
python: add wrapper for ValueCallback
2019-10-16 15:02:58 -04:00
Adrien Béraud
3a6ce2f499
c wrapper: add initial dht_privatekey support
2019-10-16 13:09:59 -04:00
Adrien Béraud
e9377f2eb6
c wrapper: add Blob, PublicKey
2019-10-16 12:01:52 -04:00
Adrien Beraud
083a28f5d8
c wrapper: add wrapper foundations
...
Wrapper can be enabled/disabled with
-DOPENDHT_C=On/Off when configuring the cmake
project.
This commit add foundations for a C wrapper
by building an opendht-c shared library that
wraps dhtrunner (for now only creation/destruction).
It also adds a test executable, dhtcnode, using the
C wrapper library.
2019-10-16 10:57:10 -04:00
Seva
8856a70af5
dhtproxy/http: dont store keys in objects
2019-10-15 14:34:50 -04:00
Seva
f24b6ca3e3
dhtproxy/http: dont store keys in asio::const_buffer
2019-10-15 14:34:50 -04:00
Seva
ccfb76d9b4
http: add client identity & fix CA
2019-10-15 14:34:50 -04:00
Adrien Béraud
9bc2ceca68
dhtrunner: use new push_token config option
2019-09-30 10:52:50 -04:00
Adrien Béraud
128af52ea2
dhtrunner: allow to specify push token in config
2019-09-30 10:20:09 -04:00
Adrien Béraud
8ed2bf50b3
utils: fix printing negative durations
2019-09-30 10:17:41 -04:00
Seva
dcdfeb0415
http: forward declare json in api
2019-09-24 15:49:03 -04:00
Seva
833dc7f5a7
http: refactor constructors & init default headers
2019-09-24 15:49:03 -04:00
Seva
d0510dcb72
http: add send json & unit test
2019-09-24 15:49:03 -04:00
Sébastien Blin
c564810b8c
Merge pull request #441 from atraczyk/master
...
msvc: fix compilation with VS 2019 16.0
2019-09-19 14:30:59 -04:00
Andreas Traczyk
e58fc4ef31
msvc: fix compilation with VS 2019 16.0
...
- <stdexcept> used to be included in <vector>
2019-09-18 16:40:12 -04:00
Seva
7fde8f63a8
peerdiscovery: refactor to camelcase & fix warning
2019-09-18 16:17:39 -04:00
Seva
166b5e352c
proxyserver: default push to localhost if empty host
2019-09-18 16:15:53 -04:00
Seva
7270c353df
http: handle expect 100-continue
...
expose raw request & ignore more self-signed
2019-09-12 11:32:54 -04:00