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
Adrien Béraud
ed6df8869c
proxy: don't use keep-alive by default
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
e0b6f152f1
proxy client: add LineSplitter
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
333087bcba
dhtrunner: fix getNodeInfo using proxy client
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
fffee634f1
proxy client: avoid destroying twice
2019-12-05 18:39:39 -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
17fb92654e
http: check parser before use
2019-12-03 16:45:19 -05:00
Adrien Béraud
294034f00f
proxy client: don't report connectivity failure for aborted requests
2019-12-03 16:21:33 -05:00
Adrien Béraud
36857c1f3d
http/request: add aborted flag and actual status code
2019-12-03 16:21:04 -05:00
zhengfish
8f141951ce
fixed a compiling error in openwrt-18.04.5
...
Signed-off-by: zhengfish <zhengfish@gmail.com >
2019-12-01 22:41:29 -05:00
Adrien Béraud
620ba2a89b
proxy server: fix warning
2019-12-01 21:01:42 -05:00
Adrien Béraud
d1598380db
proxy server: fix build without push notifications
2019-12-01 21:00:27 -05:00
Adrien Béraud
69fe399db0
proxy server: cancelListen on destroy
2019-12-01 20:54:48 -05:00
Adrien Béraud
201982b1a9
dhtrunner: don't count cancel as ops
2019-12-01 19:40:44 -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
259986e786
network engine: don't throw in case of unknown transaction
2019-12-01 14:52:21 -05:00
Adrien Béraud
8ff0c979d4
proxy server: cleanup
2019-11-30 20:36:20 -05:00
Adrien Béraud
b380c9ffba
http: cleanup
2019-11-30 18:47:29 -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
dab7099369
proxy server: cleanup
2019-11-28 22:16:22 -05:00
Adrien Béraud
eae383b3ed
autotools: remove unneeded macros
2019-11-26 12:46:26 -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
9daa7ec283
dhtrunner: default peer request rate to global/8
2019-11-11 12:58:11 -05:00
Adrien Béraud
cb7d7f6614
dht: allow to configure rate limiter
2019-11-07 16:43:04 -05:00
Adrien Béraud
e2d7dbc293
proxy client: declare mutex before protected objects
2019-11-05 16:39:03 -05:00
Adrien Béraud
090da49fed
http/Request: cleanup
2019-11-04 15:50:55 -05:00
Adrien Béraud
22594396d2
http/Request: check conn_ on cancel
2019-11-04 15:49:05 -05:00
Adrien Béraud
0c8d0e2e0d
http/Request: atomically exchange terminate
2019-11-04 15:48:39 -05:00
Adrien Béraud
18793cee3b
proxy server: close listener on connection close only
2019-11-01 10:37:19 -04: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
ed642b0337
proxy: check that callback is not null
2019-10-31 14:36:34 -04:00
Adrien Béraud
f710df9675
proxy: cleanup
2019-10-31 13:44:05 -04:00
Adrien Béraud
80f04430c3
proxy client: build resolver if none available
2019-10-30 14:53:07 -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