Seva
51a42aa2c8
dhtproxy: fix inconsistencies & add comments
2019-06-25 10:16:40 -04:00
Seva
b00f56c94a
dhtproxy: fix server logging of non c str
2019-06-21 14:41:10 -04:00
Seva
51aeaeaeab
dhtproxy: use logger everywhere & use same format
2019-06-21 12:49:47 -04:00
Seva
9014c0a7bb
dhtproxy: log subscribe to debug instead of warning
2019-06-21 11:12:49 -04:00
Seva
2164c5ddc7
dhtproxy: add control for max_pipelined_requests
2019-06-18 14:57:17 -04:00
Seva
a57a4d55e8
dhtproxy: optimize for concurency
2019-06-18 14:13:42 -04:00
Seva
b98cc78b42
dhtproxy: add if logger before using it
2019-06-18 10:17:21 -04:00
Seva
789d41ff07
dhtproxy: fix join on terminated thread
2019-06-17 16:42:12 -04:00
Seva
632403875c
dhtproxy: switch entirely to one thread
2019-06-17 16:27:39 -04:00
Seva
bc2737cdc9
dhtproxy: move resp msgs to cpp file as constexpr
2019-06-17 15:29:25 -04:00
Seva
e87d164f0b
dhtproxy: refactor client to use external io_context
2019-06-13 13:24:44 -04:00
Seva
b9604807ea
dhtproxy: replace threads by io_context
...
replace scheduler and its jobs by asio timers
2019-06-13 11:13:48 -04:00
Seva
9f12b44179
dhtproxy: move custom methods to http & default thread pool to 1
2019-06-11 16:30:42 -04:00
Seva
0772d5435c
dhtproxy: replace listener thread with a conn state observer
2019-06-11 15:37:47 -04:00
Seva
368ee9e22e
dhtproxy: ensure io_context thread pool & isolate settings
2019-06-11 11:31:43 -04:00
Seva
dd56bdd8e2
dhtproxy: add conn listener & make http services singletons
2019-06-10 17:08:37 -04:00
Seva
71b36e0643
dhtproxy: set logger in sendPushNotification
2019-06-10 14:16:18 -04:00
Seva
61b43759df
dhtproxy: set required timeout times
2019-06-10 10:12:08 -04:00
Seva
f8d62dc6a7
dhtproxy: add support for legacy http methods
...
Legacy non-standard http methods: LISTEN, STATS, SIGN, ECNRYPT
NOTE: Supported with RESTinio > 0.5.0 and custom http_parser
- https://github.com/Stiffstream/restinio/issues/26
- https://github.com/binarytrails/http-parser
2019-06-06 13:30:37 -04:00
Seva
cb349d9cf6
dhtproxy: stop server eventloop on cmd
2019-06-05 16:39:18 -04:00
Seva
0a3320e2c8
dhtproxy: enhance http async api & finish client get
2019-06-04 16:14:37 -04:00
Seva
10971f700f
dhtproxy: add http classes with fully async client
...
use server's pushNotifications of this client
2019-06-03 17:10:19 -04:00
Seva
2e7767d192
dhtproxy: fix restinio start w/o dhtlogger
2019-06-03 13:52:35 -04:00
Seva
330ad8ed12
dhtproxy: pipe restinio logs to opendht logger
2019-05-29 16:02:25 -04:00
Seva
3733fc2890
dhtproxy: switch threading to io_context
2019-05-27 15:06:11 -04:00
Seva
13661929d1
dhtproxy: switch server to ipv6 (implicit ipv4 support)
2019-05-27 14:59:19 -04:00
Seva
4e934f8902
dhtproxy: add ipv6 to restinio client & get method
2019-05-27 14:59:19 -04:00
Seva
125a05a5fc
dhtproxy: fix sendPushNotification
2019-05-27 14:59:19 -04:00
Seva
f0acc3e735
dhtproxy: add sendPushNotification to server
2019-05-27 14:59:19 -04:00
Seva
cb5a261b82
dhtproxy: cleanup server
2019-05-27 14:59:19 -04:00
Seva
feb8bd0d4f
dhtproxy: rewrite listen with restinio
2019-05-27 14:59:19 -04:00
Seva
3955368c01
dhtproxy: rewrite putEncrypted with restinio
2019-05-27 14:59:19 -04:00
Seva
b841ff1b83
dhtproxy: rewrite putSigned with restinio
2019-05-27 14:59:19 -04:00
Seva
7a04c0eb66
dhtproxy: rewrite getFiltered with restinio
2019-05-27 14:59:19 -04:00
Seva
fe1659bd2f
dhtproxy: rewrite un/subscribe with restinio
2019-05-27 14:59:19 -04:00
Seva
b90e14edd6
dhtproxy: rewrite stats with restinio
2019-05-27 14:59:19 -04:00
Seva
9e3e9e65e6
dhtproxy: switch server to restinio
...
rewrite options, getNodeInfo, get & put
opendht: bump to c++14
2019-05-27 14:59:19 -04:00
Adrien Béraud
0692bd9bc9
proxy server: fix warning when building without push notifications
2019-04-30 17:47:40 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
1c74c2207f
proxy server: cache json StreamBuilder
2019-02-19 18:43:14 -05:00
Adrien Béraud
e5f2a6eef5
proxy: send expired to sync values
2019-02-19 18:43:14 -05:00
Adrien Béraud
55f6c847b8
build: use define flags for proxy
2019-02-19 18:43:14 -05:00
Adrien Béraud
00cc4ebe28
proxy server: send push notification on thread pool
2019-02-19 18:43:14 -05:00
Adrien Béraud
aa93db4fa6
proxy server: move json to sendPushNotification
2019-02-19 18:43:14 -05:00
Sébastien Blin
75a14d3608
proxy: only get old values at first subscribe
2019-01-18 22:53:24 -08:00
Sébastien Blin
d523e9f259
tests: test retrieve values when resubscribe
2019-01-14 10:53:08 -08:00
Sébastien Blin
3a3933e6d5
dhtproxy: remove sendSubscribe
2019-01-14 10:53:08 -08:00
Sébastien Blin
70f09ded3f
dhtproxy: avoid notification after subscribe to retrieve values
2019-01-14 10:53:08 -08:00
Sébastien Blin
824a1bf5fa
proxy_server: return old values when resubscribe
2019-01-14 10:53:08 -08:00
Sébastien Blin
36cf70f2a7
proxy: remove useless token for push listeners
...
Since we authentificate listeners with the clientId and the hash and
we use only one listener by hash/clientId, we doesn't need to store
a token always equals to 0.
Note: also avoid to get multiple hashes for one push notification.
2018-12-30 13:35:18 -05:00