Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add support to config dns client cache size #1308

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

chuxi
Copy link
Contributor

@chuxi chuxi commented Sep 19, 2023

for each client key type (tcplocal, tcpremote, udplocal, udpremote), the cache client size is set 5. we can not configure the dns cache size dynamically. If the size is too small, the dns client will create new connections and discard the old ones which are still waiting for dns responses. And it leads to timeout and slow down the dns service.

So in the PR, it add a new configurable parameter for dns local client_cache_size, the default value is 5.

In my own openwrt device, it works much better.

@zonyitoo zonyitoo merged commit 68e9306 into shadowsocks:master Sep 23, 2023
6 checks passed
@chuxi chuxi deleted the v1.16.2-fix branch September 23, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants