Adrien Béraud
b2ff05407b
value cache: keep track of expired values in case of edition
2026-02-22 18:45:17 -05:00
Adrien Béraud
6a45891ee7
op cache: always increase refCount on edit
2026-02-22 18:45:17 -05:00
Adrien Béraud
0fc7e451e6
dhtrunner: move getNodeInfo implementation to securedht
2026-02-22 17:16:28 -05:00
Adrien Béraud
85cbee0f1a
dht: add local storage stats in NodeInfo
2026-02-22 16:27:35 -05:00
Adrien Béraud
724b5e592e
dht: use independent storage quota for local values
2026-02-22 16:27:35 -05:00
Adrien Béraud
28001840fa
dht: avoid infinite loop when largest quota empty
...
Ensure the selected store_quota entry is non-empty before entering the
expiry loop. If an empty entry is encountered, log a warning and break
out to prevent repeatedly attempting to expire from an empty quota
(which could hang the expiry routine).
2026-02-21 18:34:07 -05:00
Adrien Béraud
047c10cf85
dht: handle empty values when updating storage quota
2026-02-21 18:34:00 -05:00
Adrien Béraud
152f9a2f54
dht: take shared_ptr by const-ref in sortedBucketInsert
2026-02-19 22:02:32 -05:00
Adrien Béraud
2c71662af7
dht_proxy_client: prevent disconnect on local ip change
2026-02-09 15:05:43 -05:00
Adrien Béraud
64032eb6d2
utils: use fmt::format for getaddrinfo error
...
Use fmt::format to build the std::invalid_argument message in
SockAddr::resolve
instead of manual std::string concatenation when getaddrinfo fails.
2026-02-09 13:26:02 -05:00
Adrien Béraud
d91f3bdbbd
dhtrunner: implement getStorageLimit
2026-02-09 13:26:00 -05:00
Adrien Béraud
73dc55155e
utils: make unpackMsg take const Blob& and inline
...
Change the template unpackMsg to accept a const Blob& to avoid an
unnecessary copy of the Blob argument. Move the non-template unpackMsg
(returning msgpack::unpacked) into the header as an inline function and
remove its out-of-line definition from src/utils.cpp. Update
declarations accordingly.
2026-02-05 21:31:42 -05:00
Adrien Béraud
aa000ee586
http: cleanup
2026-02-05 21:31:42 -05:00
Adrien Béraud
ec4c3e343c
dht: format request targets with fmt
2026-02-05 21:31:42 -05:00
Adrien Béraud
40ffafa756
logger: use file and line number
2026-01-29 22:38:57 -05:00
Adrien Béraud
c59c0ef64d
log: add tag and filter mechanism
2026-01-26 17:31:37 -05:00
Adrien Béraud
29f87169f8
proxy server: use TLS 1.3
2026-01-21 15:29:25 -05:00
Adrien Béraud
f9cba71d51
Switch project license from GPL-3.0-or-later to MIT
2026-01-17 22:25:43 -05:00
Adrien Béraud
4fd4745647
update copyright to 2026
2026-01-17 17:09:06 -05:00
Adrien Béraud
db8ca78943
securedht: refactor lambda captures
2026-01-07 00:30:56 -05:00
Adrien Béraud
da9360143d
dht: fix typo in comment
2026-01-07 00:14:25 -05:00
Adrien Béraud
d978b471a3
thread pool: cleanup
2026-01-07 00:14:25 -05:00
Adrien Beraud
9f7e4aaa96
Revert "log: add tag and filter mechanism"
...
This reverts commit afce0fb0b4 .
2025-12-10 12:12:05 -05:00
Adrien Béraud
0bfd3cd9fc
network engine: check on_expired
2025-12-09 15:46:57 -05:00
Adrien Béraud
cd07d68bef
crypto: only support webPush with GnuTLS 3.8.2+
2025-12-09 10:39:58 -05:00
Adrien Béraud
88f3870f20
dhtrunner: add registerInsecureType method and header file
2025-12-09 09:43:30 -05:00
Adrien Béraud
d9d2c44e0f
format
2025-12-09 09:43:19 -05:00
Adrien Béraud
a1c881d914
network engine: replace lambda with direct on_expired callback
2025-12-09 09:42:52 -05:00
Adrien Béraud
fbc489863f
http: use string_view for resolver, url
2025-12-02 22:28:32 -05:00
Adrien Béraud
504a3638d9
proxy server: add support for encrypted WebPush
2025-12-02 22:28:32 -05:00
Adrien Béraud
a85abccd62
proxy server: improve unifiedpush support
2025-12-01 22:20:37 -05:00
Adrien Béraud
afce0fb0b4
log: add tag and filter mechanism
2025-12-01 22:20:37 -05:00
Adrien Béraud
99f0334229
http: improve Url parsing
2025-11-30 12:40:17 -05:00
Lucas Fryzek
55ac11bf5c
Modify UnifiedPush post request to be AND_3 compliant
2025-11-30 10:54:18 -05:00
Adrien Béraud
6b8c3ea581
base64: use simdutf
2025-11-26 14:01:45 -05:00
Adrien Béraud
09308321f8
network_utils: cleanup
2025-11-19 11:20:02 -05:00
Adrien Beraud
47d2f41930
proxy client: check for null resolver
2025-11-17 12:56:36 -05:00
kestrel
de6ea1d632
Add support for io_uring for Autotools builds.
...
* configure.ac (liburing): Add --with-liburing option, tests for liburing.
* src/Makefile.am (libopendht_la_CPPFLAGS, libopendht_la_LIBS): Add relevant compiler and linker flags.
2025-10-15 15:13:19 -04:00
kestrel
1d2fd80fad
Use pkg-config to test for llhttp for Autotools builds.
...
* configure.ac (llhttp_lib): Replaces existing tests with PKG_CHECK_MODULES.
* src/Makefile.am (libopendht_la_CPPFLAGS, libopendht_la_LIBS): Add relevant compiler and linker flags.
2025-10-15 15:13:19 -04:00
Adrien Beraud
54fd6cf64f
securedht: avoid calling identity announced callback multiple times
2025-10-10 13:59:44 -04:00
Adrien Béraud
d12f9271b8
pht: use const reference for IndexEntry::TYPE
...
Prevents static initialization order issue
2025-09-22 14:41:22 -04:00
ovari
b6f98a8488
Update crypto.cpp
2025-09-14 13:38:35 -04:00
ovari
a5e39768e4
Update securedht.cpp
2025-09-14 13:38:35 -04:00
ovari
6f6fdba8dd
Update value.cpp
2025-09-14 13:38:35 -04:00
ovari
e4b8b0259d
Update http.cpp
2025-09-14 13:38:35 -04:00
ovari
8134d6201a
Update network_engine.cpp
2025-09-14 13:38:35 -04:00
ovari
db4cd7dcc1
Update peer_discovery.cpp
2025-09-14 13:38:35 -04:00
ovari
9d6107c01c
Update storage.h
2025-09-14 13:38:35 -04:00
ovari
de46d55b13
Update crypto.cpp
...
“ !” → “.”
bits → bit
can’t → unable to
wrong → incorrect
2025-09-14 13:38:35 -04:00
Adrien Beraud
99c56d13bb
crypto: fix build on GnuTLS 3.8.3 and bellow
2025-09-08 16:38:25 -04:00