59 Commits

Author SHA1 Message Date
Nick Peng
7997300781 dns_cache: Fix several issues related to cache memory. 2023-11-30 21:59:08 +08:00
Nick Peng
d094a70078 lib: optimize time wheel code 2023-11-29 22:33:13 +08:00
Nick Peng
9a83df46e0 dns_server: support TCP keepalive timeout EDNS 2023-11-16 23:54:07 +08:00
Nick Peng
b3e16c3c60 dns_cache: fix issue of incorrect cache timeout when the process is restarted. 2023-11-14 23:21:04 +08:00
Nick Peng
568f95dbdf smartdns: enhance reliability during initialization. 2023-11-14 22:18:06 +08:00
Nick Peng
73c96cf932 dns-server: fix prefetch cache timeout issue 2023-11-07 22:09:34 +08:00
Nick Peng
aca8cf92cb dns_cache: refactor dns-cache.c, remove unused code. 2023-10-31 22:22:31 +08:00
Nick Peng
96d37332e4 dns_cache: Fix possible crash issue 2023-10-05 16:32:20 +08:00
Nick Peng
3916ea570a dns_cache: fix cache timeout issue 2023-09-27 23:19:45 +08:00
Nick Peng
bfacad33ae dns_cache: Replace cache timeout mechanism with time wheel algorithm to reduce CPU usage 2023-09-23 23:31:19 +08:00
Nick Peng
b7fb501be9 dns_cache: fix insert issue. 2023-09-19 22:15:21 +08:00
Nick Peng
f7ede1b7d0 lint: clear lint warnings 2023-09-13 23:39:54 +08:00
Nick Peng
875100f5c1 dns_cache: optimize insertion performance 2023-09-12 21:49:14 +08:00
Nick Peng
c39a7b9b41 dns_cache: optimize dns cache. 2023-08-31 22:32:35 +08:00
Nick Peng
45e3455932 dns_cache: reduce cpu usage. 2023-08-29 23:55:04 +08:00
Nick Peng
887ef7b20e dns_cache: some cpu usage optimize for inactive cache 2023-08-24 23:42:39 +08:00
Nick Peng
fb7b747f9f cache: Optimize cache memory usage 2023-08-22 23:18:31 +08:00
Nick Peng
d3a6d46a44 dns_cache: Support periodically saving cache files 2023-04-29 21:46:48 +08:00
Nick Peng
582cdfb879 cache: modify cache ver check method, add ipset, nftset after restart. 2023-03-28 23:28:28 +08:00
Nick Peng
a62d716b10 smartdns: fix valgrind warnings. 2023-02-17 22:09:38 +08:00
Nick Peng
694d093fc4 smartdns: fix compile warnings for gcc 11. 2023-02-17 21:51:17 +08:00
Nick Peng
13d028df0d smartdns: bump copyright to 2023, and fix some typo 2023-01-20 00:05:14 +08:00
Nick Peng
70df7938f3 conf: support disable expired cache on specific domain. 2022-12-21 18:40:55 +08:00
Nick Peng
04985216a8 dns_cache: separate DNS cache 2022-11-17 23:51:15 +08:00
Nick Peng
2848aa0ac7 server_group: fix server group not working issue. 2022-08-11 23:57:33 +08:00
Nick Peng
a83818c094 code: cleanup lint and extra compile warnings 2022-07-10 10:32:01 +08:00
Nick Peng
5006059074 cache: fix dns cache prefetch issue 2022-06-25 20:24:27 +08:00
Nick Peng
1873a0c336 cache: support expired domain prefetch 2022-06-12 23:39:42 +08:00
Nick Peng
7e985e7d11 dns_server: fix dualstack select issue. 2022-06-08 23:28:46 +08:00
Nick Peng
5bd521c36b dns_server: Cache A record for AAAA query when dualstack select 2022-04-22 23:36:37 +08:00
Nick Peng
d7d7ef48cd cache: optimize cname TTL 2022-02-17 16:34:24 +08:00
Nick Peng
75d91096ca cache: make cname ttl countdown 2022-02-16 17:05:43 +08:00
Jian Chang
c88b334902 improve #754 (#756)
* improve #754
2021-08-25 16:55:16 +08:00
Nick Peng
11cf7b614c dualstack: cache SOA record for speed. 2021-01-24 14:16:35 +08:00
Nick Peng
51e1e6565f MemLeak: fix memory leak when cache size is 0 2021-01-24 11:13:06 +08:00
Nick Peng
6f30fe6d05 compile: remove O_CLOEXEC flags 2020-09-05 19:37:50 +08:00
Nick Peng
0b45da29c7 cache: support persist cache when restart smartdns 2020-09-05 12:55:30 +08:00
Nick Peng
aee19be262 dns-cache: support cache when speed check is disabled 2020-08-23 20:12:50 +08:00
Nick Peng
c1f9941427 dualstack: update cache when ipv6 not exists 2020-05-04 02:24:55 +08:00
Nick Peng
c824c0abc5 CodeStyle: update clang-format, limite column to 120 2020-03-02 23:45:47 +08:00
Nick Peng
8990446411 serve-expired: new feature, support cache serve-expired feature 2020-02-14 13:13:22 +08:00
Nick Peng
aa7237f770 Codesytle: replace CRLF with LF 2020-01-21 20:00:38 +08:00
Nick Peng
01e4140722 Add license 2019-12-15 01:28:32 +08:00
Nick Peng
f801023569 Optimize prefetch hitime 2019-12-15 01:27:39 +08:00
Nick Peng
1f6e447f86 format code sytle 2019-12-15 01:27:30 +08:00
Nick Peng
3ef325d75d Support GCC 8.x and support static compile 2019-12-15 01:27:02 +08:00
Nick Peng
63db66546c Fix cache leak issue 2019-12-15 01:26:28 +08:00
Nick Peng
cddc511e6b Fix prefetch issue 2019-12-15 01:26:27 +08:00
Nick Peng
76367847d1 optimize dualstack selection feature 2019-12-15 01:26:25 +08:00
Nick Peng
7828f0ec27 code lint and optimize code style 2019-12-15 01:26:01 +08:00