-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
\core\device\iobased\endpoint.go:78 Read latency is high #353
Comments
Hi, are you using the pre-release tun2socks or your modified one? As I notice some of the logs are not part of this project. |
是基于v2.5.2改后的,我把tun2socks作为库使用,就改了tcp超时时间改为15s了,发现访问youtube找不到DNS,要多少刷新后或者等5-10分钟后才能访问外网,不知道如何解决,困扰我许久了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Verify steps
Version
v2.5.2
What OS are you seeing the problem on?
Windows
Description
env:
windows 11
tun2socks: version v2.5.2
issue:
Accessing youtube and google.con is very slow. Through pprof analysis, we found that the delay in reading data in tun is 27.81s.
\tun2socks\[email protected] line sn:
\core\device\iobased\endpoint.go:78
\core\device\iobased\endpoint.go:99
\core\device\tun\tun_wireguard.go:76
CLI or Config
./tun2socks-windows-amd64.exe -device wintun -proxy socks5://127.0.0.1:1097 -interface "eth2"
netsh interface ipv4 set address name="wintun" source=static addr=192.168.132.12 mask=255.255.255.0
netsh interface ipv4 set dnsservers name="wintun" static address=8.8.8.8 register=none validate=no
netsh interface ipv4 add route 0.0.0.0/0 "wintun" 192.168.132.12 metric=1
netsh interface ipv4 add route 38.77.232.6/32 eth2 192.168.7.1 metric=5
Logs
How to Reproduce
none
The text was updated successfully, but these errors were encountered: