ffay / lanproxy

lanproxy是一个将局域网个人电脑、服务器代理到公网的内网穿透工具,支持tcp流量转发,可支持任何tcp上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面、http代理、https代理、socks5代理...)。技术交流QQ群 736294209
https://nat.nioee.com
5.64k stars 1.53k forks source link

客户端和后端之间会产生大量CLOSE_WAIT #183

Closed mengpengfei closed 1 year ago

mengpengfei commented 1 year ago

经测试客户端和后端nginx之间会产生大量CLOSE_WAIT链接,请问是什么原因导致。 tcp 1 0 127.0.0.1:5703 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:4457 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:55695 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:36172 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:35666 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:36438 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:46168 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:12396 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:13810 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:50310 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:50410 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:41047 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:5500 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:57737 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:58705 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:43005 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:1236 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:32297 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:17889 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:43354 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:48574 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:44352 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:36207 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:28596 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:12348 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:2862 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:36177 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:25223 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:4454 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:64497 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:40502 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:42657 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:32884 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:14081 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:58643 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:38963 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:6609 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:65474 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:48356 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:57653 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:59298 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:8135 127.0.0.1:80 CLOSE_WAIT tcp 1 0 127.0.0.1:3551 127.0.0.1:80 CLOSE_WAIT

mengpengfei commented 1 year ago

已经自己check代码解决问题