Adrien Béraud
7b88a2122a
proxy: always use string tokens
2018-04-10 12:48:19 -04:00
Adrien Béraud
6a2f61a0db
dht: fix compilation warnings
2018-04-10 12:48:19 -04:00
Sébastien Blin
f9cf95d537
Merge pull request #272 from savoirfairelinux/proxy_client
...
Proxy client: multiple improvements and bug fixes
2018-04-09 12:21:29 -04:00
Adrien Béraud
4884306135
proxy client: restart listeners on reconnect
...
* track IPv4, IPv6 connectivity seperately
* properly restart listeners when connected
* get proxy info in parallel for multiple AF
2018-04-08 19:54:43 -04:00
Adrien Béraud
fd11a4b3e4
proxy client: prevent callback during cancelAllListeners
2018-04-08 19:54:00 -04:00
Adrien Béraud
b3c637536f
proxy client: prevent use-after-free after destruction
2018-04-08 19:54:00 -04:00
Adrien Béraud
1436af0321
value cache: prevent callback copy on move
2018-04-08 19:54:00 -04:00
Adrien Béraud
1debe012c1
proxy client: restart listeners on connectivity change
2018-04-08 19:54:00 -04:00
Adrien Béraud
368a842d2e
proxy client: don't block resolving address
2018-04-08 19:53:59 -04:00
Adrien Béraud
d250e9b630
proxy client: avoid sending listen with push notifications
2018-04-08 19:53:59 -04:00
Adrien Béraud
3ff6863287
proxy client: add logs
2018-04-08 19:53:59 -04:00
Sébastien Blin
96621ea332
Merge pull request #271 from savoirfairelinux/proxy_client_use_after_free
...
proxy client: retrieve search from callback
1.7.0rc5
2018-04-06 13:13:07 -04:00
Adrien Béraud
567fa1c703
proxy client: retrieve search from callback
2018-04-06 11:43:51 -04:00
Adrien Béraud
20ab71aba6
securedht: check public key
2018-04-05 14:23:15 -04:00
Adrien Béraud
1acace1b91
proxy client: add missing mutex, cleanup
2018-04-05 02:35:01 -04:00
Adrien Béraud
2f423fec48
crypto: check public key for null before pack or print
2018-04-05 02:33:58 -04:00
Adrien Béraud
7be550bf94
value cache: use single callback
2018-04-05 02:08:58 -04:00
Adrien Béraud
a8c0340bf1
Merge pull request #269 from AmarOk1412/removeCallbackId
...
proxy: remove useless callback_id
2018-04-03 12:26:52 -04:00
Sébastien Blin
5b71af3cec
proxy: remove useless callback_id
...
callback_id was used for token problems which are not present anymore.
Now token is sufficient and we can remove callback_id.
2018-04-03 10:43:56 -04:00
Adrien Béraud
fcf7111872
scheduler: avoid possible overflow with buggy stdlib
1.7.0rc4
2018-03-29 11:58:26 -04:00
Adrien Béraud
38ca7b851b
Merge pull request #267 from AmarOk1412/cpuusage
...
scheduler: avoid overflow causing 100% cpu usage
2018-03-29 11:42:13 -04:00
Sébastien Blin
62bbce76f2
scheduler: avoid overflow causing 100% cpu usage
2018-03-29 11:40:04 -04:00
Adrien Béraud
d9f6731de2
Merge pull request #265 from AmarOk1412/fixSplit
...
proxy_client: fix address split
2018-03-29 11:10:32 -04:00
Sébastien Blin
393a403ff2
proxy_client: fix address split
2018-03-29 11:00:33 -04:00
Adrien Béraud
62e4655d4f
Merge pull request #264 from AmarOk1412/fixPublicAddr
...
dht_proxy_client: fix getPublicAdresss parsing
1.7.0rc3
2018-03-28 16:44:34 -04:00
Sébastien Blin
60d43319e2
dht_proxy_client: fix getPublicAdresss
...
Retrieve all public ips (Ipv6 + v4). Has to resolve all proxy
address (so two get requests to get all ips)
2018-03-28 15:59:04 -04:00
Sébastien Blin
7d3c613347
Merge pull request #263 from savoirfairelinux/value_cache
...
Cache: improve value expiration handling
2018-03-28 10:11:12 -04:00
Adrien Béraud
d2df93c75e
network engine: send nodes in listen confirmation
2018-03-28 09:54:04 -04:00
Adrien Béraud
0edee443f5
cache: improve value expiration handling
2018-03-28 09:54:04 -04:00
Sébastien Blin
8c85f84b8a
Merge pull request #261 from savoirfairelinux/dhtrunner_unit_test
...
tests: add initial unit test for DhtRunner
2018-03-21 11:38:05 -04:00
Adrien Béraud
cea0d4f62e
tests: add initial unit test for DhtRunner
2018-03-21 11:22:21 -04:00
Adrien Béraud
203150851f
OpCache: keep cache alive during callback processing
1.7.0rc2
2018-03-19 20:11:12 -04:00
Adrien Béraud
9a5ef25179
update to version 1.7.0rc1
1.7.0rc1
2018-03-17 23:12:38 -04:00
Adrien Béraud
a5137e8ac4
tests: fix build with autotools
2018-03-17 14:47:23 -04:00
Adrien Béraud
c129a24492
travis: use 5 build configurations
...
Merge all push configurations to reduce build time
as Travis provides 5 free simultaneous builds.
The 'all' configuration is renamed 'push' to reflect the change
2018-03-17 14:40:50 -04:00
Adrien Béraud
8237f32bd5
travis: update Dockerfiles, change base OS to Ubuntu 16.04
2018-03-17 14:32:09 -04:00
Sébastien Blin
546e63edaf
Merge pull request #258 from savoirfairelinux/value_cache
...
Add a value cache for each nodes. This cache avoids network packets by grouping LISTEN operations on the same hash.
2018-03-16 13:55:24 -04:00
Adrien Béraud
647de16f1c
proxy client: implement getLocal(), getLocalById()
2018-03-16 13:34:41 -04:00
Adrien Béraud
2f4acd26d6
dhtinterface: add listen() callback to signal expired values
2018-03-16 13:34:41 -04:00
Adrien Béraud
48bb804792
proxy client: add cache for values and operations
2018-03-16 13:34:40 -04:00
Adrien Béraud
4261bd2c85
dhtinterface: remove resubscribe
2018-03-16 13:34:32 -04:00
Adrien Béraud
12db1f88dc
dht: introduce cache for values and operations
...
Multiplex multiple listen operations on a single key through
a unique listen operation on the network.
2018-03-16 13:34:32 -04:00
Adrien Béraud
1617c79e5d
network: add signaling for expired, refreshed values
2018-03-14 23:39:35 -04:00
Adrien Béraud
80b944d943
dhtnode: prevent crash in cancelListen
2018-03-14 23:39:35 -04:00
Adrien Béraud
74bfced9b9
Merge pull request #255 from AmarOk1412/tests
...
tests: add unit tests structure to opendht
2018-03-14 23:00:30 -04:00
Sébastien Blin
1c10872ea2
tests: add unit tests structure to opendht
...
+ Unit testing requires cppunit.
+ add options for CMake and Autotools to build opendht_unit_tests.
+ add sample tests for InfoHash
+ modify Dockerfiles and Travis build to run `make test`
+ Change lowbit signature to return an int instead of an unsigned.
2018-03-14 15:26:47 -04:00
Adrien Béraud
2b2e8c2a72
Merge pull request #260 from AmarOk1412/fixConnectivityStatus
...
proxy_client: avoid to call getConnectivityStatus() when destroying
2018-03-14 15:22:20 -04:00
Sébastien Blin
2315dc089a
proxy_client: avoid to call getConnectivityStatus() when destroying
...
Because getConnectivityStatus is called each time an operation fails,
when destroying the proxy_client, we stop all operations so it fails.
2018-03-14 11:33:01 -04:00
Adrien Béraud
d7c0e9af38
update to version 1.6.1
1.6.1
2018-03-06 17:30:07 -05:00
Adrien Béraud
460cf858d3
argon2: bump submodule to latest release
2018-03-06 17:24:09 -05:00