Skip to content

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
@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