Skip to content
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

大量连接不存在的 Peer 将导致耗尽线程 #149

Open
lindexi opened this issue Mar 30, 2024 · 1 comment
Open

大量连接不存在的 Peer 将导致耗尽线程 #149

lindexi opened this issue Mar 30, 2024 · 1 comment

Comments

@lindexi
Copy link
Member

lindexi commented Mar 30, 2024

https://github.com/dotnet-campus/UnoSpySnoop 里将会尝试连接每个线程,每次连接失败时,都会存在管道没有释放

这是由于 Ipc 设计上是为了稳定性,尽量确保 Ipc 稳定连接,即使现在连接不上也会继续尝试连接。加上在尝试连接时是先启动自己的管道再尝试去连接对方,于是自己启动的管道等逻辑将会持续占用线程。在进行大量连接必定失败的 Peer 时,将会导致耗尽线程

@xinyuehtx
Copy link

xinyuehtx commented Mar 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants