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
Adrien Béraud
17a1178054
tools: add missing includes for indexation support
2019-12-12 15:00:17 -05:00
Adrien Béraud
6256c576c9
configure: cleanup
2019-12-12 14:51:59 -05:00
Adrien Béraud
9565adf693
proxy server: always depend on jsoncpp
2019-12-12 14:51:59 -05:00
Adrien Béraud
c10aa32596
cpp: include config.h when necessary
2019-12-12 14:51:59 -05:00
Adrien Béraud
21c294f352
docker: update asio
2019-12-12 14:51:59 -05:00
Adrien Béraud
4654f78e08
autotools: allow to build without peer discovery
2019-12-12 14:51:59 -05:00
Adrien Béraud
38644fc934
includes: don't include proxy server, pht by default
2019-12-12 14:44:53 -05:00
Adrien Béraud
fa8dc4c835
callbacks: add missing header
2019-12-12 14:33:00 -05:00
Adrien Béraud
6dab10cac2
github: disable tests and examples when building asio
2019-12-12 12:24:56 -05:00
Adrien Béraud
77a1c27f2b
github: build asio
2019-12-12 11:52:43 -05:00
Adrien Béraud
e8577bfd05
dhtrunner: fix build without peer discovery
2019-12-12 11:42:06 -05:00
Adrien Béraud
c0327a9881
dhtrunner: fix build without peer discovery
2019-12-11 11:43:20 -05:00
Adrien Béraud
2a1eacc949
tests: only link with ssl if required
2019-12-09 16:23:15 -05:00
Adrien Béraud
e705bebc25
github: don't build proxy
2019-12-09 16:06:39 -05:00
Adrien Béraud
a330762f40
build: always use standalone asio
2019-12-09 15:40:48 -05:00
Adrien Béraud
e7972ae897
dockerfiles: update
2019-12-09 15:34:26 -05:00
Adrien Béraud
8d2d40cb7f
peer discovery: simplify includes
2019-12-09 14:53:27 -05:00
Adrien Béraud
aceb548c26
cmake: make peer discovery build optional
2019-12-09 14:43:04 -05:00
Adrien Béraud
afce4639e1
tests/peerdiscover: add missing includes
2019-12-09 14:07:42 -05:00
Adrien Béraud
e5d248bcd0
peer discovery: use asio
2019-12-09 03:28:45 -05:00
Adrien Béraud
0fbebf8e03
http: cleanup, fix handling error when no logger is set
2019-12-08 10:48:34 -05:00
Adrien Béraud
24efa37846
http: cleanup
2019-12-08 00:25:21 -05:00
Linas Vepstas
c0f14ca59d
Fix duplicated, non-functional log message.
...
Inside the if-statement, the log message will always print zero.
Confusingly, its the same message as the one in the loop above it.
Make the message distinct.
2019-12-07 22:28:35 -05:00
Adrien Béraud
05a66cc1f1
proxy client: use common jsonReader
2019-12-07 22:22:37 -05:00