Adrien Béraud
b3511d223b
sockaddr: use more precise exception
2018-12-17 16:41:00 -05:00
Adrien Béraud
d1aca77809
securedht: move crypto ops to Value
2018-12-17 16:41:00 -05:00
Adrien Béraud
306d573223
proxy client: fix race condition
2018-12-17 16:41:00 -05:00
Sébastien Blin
20f4355b73
Merge pull request #356 from savoirfairelinux/build
...
securedht: add override
2018-12-11 14:52:07 -05:00
Adrien Béraud
a2d7cd56a8
Merge pull request #358 from atraczyk/master
...
replace _write with send when building for windows
2018-12-11 14:48:26 -05:00
Andreas Traczyk
5cd53f3624
replace _write with send when building for windows
2018-12-11 14:37:14 -05:00
Adrien Béraud
32eea55f10
autotools: don't build doc if doxygen not found
2018-12-11 14:04:35 -05:00
Adrien Béraud
f2f913f93f
securedht: add override for relevant methods
2018-12-11 14:04:35 -05:00
Adrien Béraud
cb9fe9d1fe
Merge pull request #354 from atraczyk/master
...
msvc: replace write with _write when building on windows
2018-12-06 12:23:36 -05:00
Andreas Traczyk
dcab32ef4f
replace write with _write when building with msvc
2018-12-06 12:16:59 -05:00
Adrien Béraud
4948bd7ad3
node cache: remove expired weak pointers from cache
...
Remove expired Node weak pointers regularly,
in a way that ensures that:
* every expired pointer gets eventually cleaned up
* expired pointer ratio remains reasonably low
* no cleanup pass blocks the node for too long,
* impact on performance is negligible
Impact on performance:
Every N insertions, at most N nodes are tested by iterating the map
-> performance impact in O(1) (constant).
2018-11-29 19:27:32 -05:00
Adrien Béraud
4416b91461
update to version 1.8.0
1.8.0
2018-11-28 18:44:03 -05:00
Adrien Béraud
378ae396f0
Merge pull request #351 from hanyf/master
...
A obvious bug on network engine
2018-11-28 12:48:02 -05:00
Yanfei Han
dc4a790a38
A obviouse bug on network engine
2018-11-29 00:47:00 +08:00
Sébastien Blin
07dd8f5648
Merge pull request #350 from savoirfairelinux/feature/cache
...
Feature/cache
2018-11-28 09:22:06 -05:00
Adrien Béraud
f7433a2289
travis: update to xenial
2018-11-26 16:48:00 -05:00
Adrien Béraud
ce4a65ff00
dhtrunner: add APIs for listen<T> with expiration information
2018-11-26 16:34:19 -05:00
Adrien Béraud
092f5cfef0
network_engine: fix warning
2018-11-26 16:34:19 -05:00
Adrien Béraud
12a45e7558
cmake: remove unnecessary flags for lto
2018-11-26 16:30:18 -05:00
Adrien Béraud
18d359a7d2
dht: refresh value if already exists
2018-11-26 01:57:57 -05:00
Adrien Béraud
c6bb67d1ac
dht: add storageRefresh
2018-11-26 01:57:57 -05:00
Adrien Béraud
f4cd7636ce
securedht: use signature cache in storePolicy, editPolicy
2018-11-26 01:57:57 -05:00
Adrien Béraud
2dd4e640c4
dhtrunner: add APIs for listen<T> with expiration information
2018-11-25 23:01:03 -05:00
Adrien Béraud
9a301e3590
Revert "cmake: use CMAKE_INTERPROCEDURAL_OPTIMIZATION for LTO"
...
This reverts commit b7b5152348 .
2018-11-24 15:32:29 -05:00
Sébastien Blin
aa16b9a235
Merge pull request #348 from savoirfairelinux/feature/probepermanent
...
dht: don't send probe query for non permanent puts
1.7.5rc5
2018-11-23 10:10:35 -05:00
Adrien Béraud
b2542a57df
securedht: cache value signature check/decryption results
2018-11-22 15:43:55 -05:00
Adrien Béraud
00c1be9cdc
logger: use DBG for DEBUG to avoid name conflicts
2018-11-22 15:43:55 -05:00
Adrien Béraud
e414ca89c7
dht: don't send probe query for non permanent puts
2018-11-22 15:43:55 -05:00
Adrien Béraud
4d26537b93
Merge pull request #346 from AmarOk1412/fix/finished
...
dht_proxy_client: fix finished behavior
1.7.5rc4
2018-11-11 22:19:50 -05:00
Sébastien Blin
00a9333de7
dht_proxy_client: fix finished behavior
...
callback_.emplace_back() returns immediately, so, in some case,
finished can be set to true even before we execute one callback.
Finished should not be used into callback. This patch adds a
finished variable only used by the callbacks to avoid this
case.
This improve the reactivity of the proxy client.
2018-11-11 15:27:57 -05:00
Adrien Béraud
971f96bf95
dhtrunner: improve getId()/getNodeId() documentation.
2018-10-29 16:23:21 -04:00
Adrien Béraud
f9a12a9dca
crypto: use proper size for getRandom()
...
Provided size should be the number of elements, not the number of bytes.
Also, if secure_vector where used with sizeof(T) > 1 (currently not the case),
there would be memory write to invalid address.
2018-10-29 16:21:51 -04:00
Adrien Béraud
c05a93ae54
proxy server: cleanup
2018-10-29 12:45:52 -04:00
Adrien Béraud
ff83a6daab
proxy: support value expiration
2018-10-29 12:45:52 -04:00
Adrien Béraud
b7b5152348
cmake: use CMAKE_INTERPROCEDURAL_OPTIMIZATION for LTO
2018-10-27 16:38:37 -04:00
Adrien Béraud
a3768d1e50
cmake: use LINK_FLAGS for LTO
2018-10-27 14:57:51 -04:00
Adrien Béraud
94926cea22
proxy server: avoid early session close
2018-10-27 13:21:26 -04:00
Adrien Béraud
82ca2d1993
cmake: use single target_link_libraries for static library
2018-10-27 12:30:40 -04:00
Adrien Béraud
3e148599c5
proxy server: stop get if session is closed
2018-10-27 12:20:00 -04:00
Adrien Béraud
02d5592fdb
cmake: improve restbed, jsoncpp search & usage
2018-10-27 11:51:42 -04:00
Adrien Béraud
328b306fd0
crypto: add documentation
2018-10-27 11:50:26 -04:00
Adrien Béraud
522a89b6f8
dht: use search cache for get ops
2018-10-27 11:49:55 -04:00
Adrien Béraud
897b451f44
crypto: fix build on Win32
2018-10-26 13:16:02 -04:00
Adrien Béraud
ba3a42697c
Merge pull request #331 from Dale-M/master
...
Some additions to automake infrastructure to get clean default build.
2018-09-20 14:24:34 -04:00
Adrien Béraud
5112a322de
dht: reschedule permanent put refresh after request
1.7.5rc3
2018-09-19 01:54:54 -04:00
Adrien Béraud
85961c6a62
storage: properly refresh expiration
2018-09-19 01:54:54 -04:00
Adrien Béraud
1eb1f3d5ac
storageStore: add permanent mode
2018-09-19 01:54:54 -04:00
Adrien Béraud
726c138d90
dht: move storageStore to put
2018-09-19 01:54:54 -04:00
Adrien Béraud
1b6b1ca072
comments: fix typos
2018-09-19 01:54:54 -04:00
Dale Mellor
77da72c603
Some additions to automake infrastructure to get clean default build.
...
Be sure to pull in paths to headers for json and MsgPack dependencies.
Be sure to always build the base64 encoder and decoder, as they are
needed.
2018-09-17 09:40:07 +01:00