Sébastien Blin
fb6d290692
Merge pull request #309 from savoirfairelinux/searchnode
...
SearchNode: refresh token
1.7.3rc4
2018-06-13 10:35:51 -04:00
Adrien Béraud
96c60d39ed
proxy server: reschedule after using function
2018-06-12 18:19:12 -04:00
Adrien Béraud
3a41f2ce56
search: use pointer to SearchNode
2018-06-12 16:54:12 -04:00
Adrien Béraud
5bd88533fe
SearchNode: refresh token in Query, Listen answers
2018-06-12 16:50:15 -04:00
Adrien Béraud
c48e24403b
Merge pull request #296 from AmarOk1412/resub
...
proxy: refresh puts and subscriptions when connectivity changes
1.7.3rc3
2018-06-06 12:18:58 -04:00
Sébastien Blin
3cf2c092f2
proxy: remove useless convertion from InfoHash to InfoHash
2018-06-06 12:16:10 -04:00
Sébastien Blin
aef8aa545b
proxy: reschedule printStatsJob
2018-06-06 12:08:31 -04:00
Sébastien Blin
0c61a605ad
proxy: refresh puts and subscriptions when connectivity changes
2018-06-06 11:29:40 -04:00
Sébastien Blin
e6b247bead
Merge pull request #307 from savoirfairelinux/crypto_tests
...
test: add crypto unit test
2018-06-06 10:05:10 -04:00
Sébastien Blin
6f1f18f128
Merge pull request #302 from savoirfairelinux/getnodeinfo
...
dhtrunner: add getNodeInfo()
2018-06-06 10:04:57 -04:00
Adrien Béraud
f24458860d
test: add crypto unit test
2018-06-06 01:12:18 -04:00
Adrien Béraud
07bed77714
proxy server: schedule task from outside thread
2018-06-05 19:43:56 -04:00
Adrien Béraud
aa202b2cd8
dhtrunner: add getNodeInfo()
...
Allow to retrieve all dht stats in a single API call using
the new method getNodeInfo() and the JSON-serializable
new structure NodeInfo.
2018-06-05 19:43:56 -04:00
Adrien Béraud
4c89ce9d3f
Merge pull request #303 from AmarOk1412/getNodeStats
...
dht_proxy_server: avoid mutex when getting /
2018-05-30 17:01:56 -04:00
Sébastien Blin
709a2c7b7c
dht_proxy_server: avoid mutex when getting /
...
The dht_proxy_server should be always up, so getNodesStats will
be pretty always up-to-date. We can add it into a job and avoid
to wait for this method to finish (and this method use an
internal lock) to have a quick answer about the status of the proxy.
Note: the update is forced during the initialization of the proxy
2018-05-30 14:25:46 -04:00
Adrien Béraud
b7e483078a
proxy: fix typo
2018-05-25 10:26:58 -04:00
Adrien Béraud
b2171d707a
network engine: properly apply flag MSG_NOSIGNAL
2018-05-25 10:26:58 -04:00
Adrien Béraud
60db9fd9cd
logs: reduce node expiration to debug level
2018-05-25 10:26:58 -04:00
Adrien Béraud
e8989f1f79
network engine: handle EPERM
1.7.3rc2
2018-05-24 16:07:16 -04:00
Adrien Béraud
b7218bd1c9
Merge pull request #299 from savoirfairelinux/tests
...
travis: run CI with ASAN
2018-05-24 15:46:56 -04:00
Adrien Béraud
43aab40968
travis: run CI with ASAN
2018-05-24 15:31:52 -04:00
Sébastien Blin
ed57b3bfa9
Merge pull request #300 from savoirfairelinux/leak
...
network engine: fix node leak during destruction
2018-05-24 15:14:22 -04:00
Adrien Béraud
9249f34c47
network engine: fix node leak during destruction
2018-05-24 15:01:23 -04:00
Sébastien Blin
57401e8d53
Merge pull request #297 from savoirfairelinux/logs
...
log: fix LogMethod copy
2018-05-24 14:55:06 -04:00
Adrien Béraud
f5f71a0365
log: fix LogMethod copy
2018-05-24 11:57:12 -04:00
Adrien Béraud
1fe9f2fdb1
dhtnode: default-initialize dht config
2018-05-23 11:21:25 -04:00
Sébastien Blin
59d129b8ff
Merge pull request #293 from savoirfairelinux/proxy_fixes
...
Proxy fixes
2018-05-17 14:47:16 -04:00
Adrien Béraud
5b5349d7ad
proxy client: lock proxy info thread, catch detach exceptions
2018-05-17 11:34:25 -04:00
Adrien Béraud
b2ba1ca002
proxy server: close socket if no token
2018-05-17 11:33:32 -04:00
Adrien Béraud
8606e87684
proxy client: allow concurrent proxy info requests ( #292 )
1.7.3rc1
2018-05-11 15:47:24 -04:00
Adrien Béraud
e4f640f11b
update to version 1.7.2
1.7.2
2018-05-08 15:58:24 -04:00
Adrien Béraud
e31d301d90
dhtrunner: run connectivityChanged() even when disconnected
2018-05-08 15:58:24 -04:00
Adrien Béraud
2a15435be3
Merge pull request #291 from AmarOk1412/fixPushIdle
...
proxy: set status to CONNECTED when receiving a push notifications
2018-05-08 13:46:59 -04:00
Adrien Béraud
44a411ba96
Merge pull request #279 from savoirfairelinux/testsproxy
...
tests: begin tests for dht_proxy_server
2018-05-08 13:46:42 -04:00
Sébastien Blin
bf2f2369b1
proxy: set status to CONNECTED when receiving a push notifications
...
If a device receives a push notification, we can assume that the
proxy is up and running (because it sends a push notification).
Indeed, if the proxy is declared as disconnected, no operatons will
be executed when a push notification is received. This state is logic
when not using push notifications (because the local node is down),
but here, the status depends more on the proxy than the local node.
2018-05-08 13:35:13 -04:00
Adrien Béraud
b8b1f61268
search: announce immediately if synced and not pending/completed
1.7.2rc3
2018-05-07 17:43:31 -04:00
Adrien Béraud
63db2eafd9
dht: print detailed request state in search log
2018-05-07 17:43:31 -04:00
Adrien Béraud
68f52a815d
proxy client: refactor ( #289 )
...
Factor various ways of sending listen requests.
2018-05-07 14:54:32 -04:00
Adrien Béraud
9f35acf559
dhtnode: continue cmd loop on connectivity change
2018-05-05 18:23:52 -04:00
Adrien Béraud
d8e82ca7c4
dhtrunner: check dht before getting public addresses
2018-05-04 21:41:39 -04:00
Adrien Béraud
981bcfc0ba
dht: handle error when sending listen
2018-05-02 14:26:24 -04:00
Adrien Béraud
4a49a53222
Revert "network engine: expire node on next run on network failure"
...
This reverts commit 8489433060 .
2018-05-02 11:55:01 -04:00
Sébastien Blin
9f987e24fe
Merge pull request #277 from savoirfairelinux/proxy_refresh
...
proxy client: independently resubscribe push listeners
1.7.2rc2
2018-04-30 10:56:18 -04:00
Sébastien Blin
95f1d59a7f
proxy: add comment for refresh job
2018-04-30 10:42:39 -04:00
Adrien Béraud
a4fe27223f
immessage: fix warning
2018-04-30 10:40:47 -04:00
Adrien Béraud
5408dc6f09
Merge pull request #287 from AmarOk1412/immsgwithdt
...
immessage: add support for custom datatypes
2018-04-27 13:34:23 -04:00
Adrien Béraud
35d4c1d332
Merge pull request #288 from AmarOk1412/restartListenerWithoutPush
...
proxy: restart listeners if the proxy server close the connection
2018-04-27 13:33:59 -04:00
Sébastien Blin
c583b7284c
tests: add testListen for DhtProxyTester
2018-04-26 17:05:23 -04:00
Sébastien Blin
2ce0c5c4c9
proxy: restart listeners if the proxy server close the connection
...
Detect if the proxy server close the connection linked to a listener and
relaunch listeners
2018-04-26 16:45:14 -04:00
Sébastien Blin
484194c114
immessage: add support for custom datatypes
2018-04-23 17:39:37 -04:00