zhxie / pcap2socks

Redirect traffic to SOCKS proxy with pcap.
MIT License
641 stars 72 forks source link

检测延迟过于频繁 #11

Open Steve-Zheng opened 3 years ago

Steve-Zheng commented 3 years ago

环境: Windows 10 64bit,配合pcap2socks-gui使用;使用shadowsocks-rust在本地10808端口部署了socks5代理

在空载的情况下查看任务管理器,发现上传下载带宽为大约200Kbps;shadowsocks日志显示有大量连接8.8.8.8的请求(每秒上百次),猜测是延迟检测造成的。可能是由于我这里延迟不高(pcap2socks-gui显示约3-4ms)导致请求过多。

如图所示,在0.06秒之内就有十余次请求。 image

希望能添加一个限制延迟检测频率或者关闭延迟检测的功能。非常感谢。

zhxie commented 3 years ago

pcap2socks will not trigger latency test by itself, and the frequency of the latency test triggered by pcap2socks-gui is once a second. From the screenshot, the download and upload speed reported by pcap2socks-gui is 0, so it should have no traffic passing through pcap2socks at the time. If these requests are indeed started by pcap2socks, then there may be a potential bug. I will check it later.


pcap2socks 不会触发延迟检测,pcap2socks 的延迟检测由 pcap2socks-gui 触发,且频率为 1 秒 1 次。从截图中可以看出,pcap2socks-gui 汇报的上传速度和下载速度均为 0,那么此时应该没有流量通过 pcap2socks。如果这些请求确实是由 pcap2socks 发起的,那可能是一个潜在的 bug。我之后确认一下。