-
Notifications
You must be signed in to change notification settings - Fork 2k
Proxy websocket causes file descriptor leak #1510
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
Comments
Same error. 我在尝试你的 proxySocket.end() to proxySocket.destroy() |
2 tasks
我仅仅修改了 |
我的测试结果也是这样的 |
This was referenced Dec 27, 2023
Jimbly
pushed a commit
to Jimbly/http-proxy-node16
that referenced
this issue
Dec 28, 2023
muratso
pushed a commit
to ExodusMovement/node-http-proxy
that referenced
this issue
Apr 29, 2024
Reference: http-party#1510
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have encountered a problem of file descriptor leakage. When the browser is forced to close after establishing multiple websocket connections, the number of file descriptors of the agent program will not decrease. Through the windows resource monitor, you can see that there are a large number of
File \Device\Afd
in the handles associated with the agent.In the source code, when an error occurs in the socket from the client to the proxy, the code executes proxySocket.end(), the code is as follows:
The problem disappeared when I changed
proxySocket.end()
toproxySocket.destroy()
.Excuse me, if you execute
proxySocket.destroy()
, will there be any other consequences?The text was updated successfully, but these errors were encountered: