Closed mengpengfei closed 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
已经自己check代码解决问题
经测试客户端和后端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