-
Notifications
You must be signed in to change notification settings - Fork 97
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
程序断网重连出现CPU占满情况 #19
Comments
应该是在清除client和stream资源时,有死循环被触发 |
能否给出详细的操作过程呢? |
在uibuntu22.04环境下,测试xfrpc的tcp配置和http配置。分别断网三次down掉网卡又up网卡。xfrpc均能重新连上frps且未出现xfrpc占用cpu100%的bug。 xfrpc配置如下: [http] [https] frps配置如下: 注意最后一行,主线的xfrpc卡在了这最后一行再也无法回连到frps上面。因此猜测原因在于xfrpc一直尝试回连导致cpu占用100%。这个bug可以试下利用另一个线程来监控xfrpc的连接状态超时就重启xfrpc。 |
是因为有死循环导致,代码有bug导致 |
不是因为断网重连进入的死循环吗?
浪
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年1月5日(星期四) 上午9:29
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [liudf0716/xfrpc] 程序断网重连出现CPU占满情况 (Issue #19)
是因为有死循环导致,代码有bug导致
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
@A-lullaby 断网会导致循环连接,但有sleep,不会导致cpu 100% |
了解了解
浪
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年1月5日(星期四) 上午9:31
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [liudf0716/xfrpc] 程序断网重连出现CPU占满情况 (Issue #19)
@A-lullaby 断网会导致循环连接,但有sleep,不会导致cpu 100%
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
#19 Signed-off-by: Dengfeng Liu <[email protected]>
是uthash宏使用错误的问题,根据chatgpt给出的代码,清楚uthash的代码如下:
原代码处理起来有问题。 |
The text was updated successfully, but these errors were encountered: