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

如果程序里同时启动了 Server 和 Client ,GlobalObject 混淆的问题 #347

Closed
RoshanDev opened this issue Nov 25, 2024 · 5 comments

Comments

@RoshanDev
Copy link

Server 的 WorkerPoolSize 设为10,但是 client Restart 时就会将 zconf.GlobalObject.WorkerPoolSize 设置为 0,影响了 server 的 MsgHandle 的 Intercept 里,根据 zconf.GlobalObject.WorkerPoolSize 来判断是否大于 0 ,来启动工作池机制。

@aceld
Copy link
Owner

aceld commented Dec 5, 2024

@RoshanDev 看了下,确实存在这个问题,我们看看怎么避免下。

@aceld
Copy link
Owner

aceld commented Dec 6, 2024

@RoshanDev #350 这个PR修复了这个问题,你再看看,是否还存在,拉master分支

@RoshanDev
Copy link
Author

@RoshanDev #350 这个PR修复了这个问题,你再看看,是否还存在,拉master分支

好的,谢谢大佬,我先看看。

@RoshanDev
Copy link
Author

大佬我这儿运行起来是可以了。Thanks♪(・ω・)ノ

@RoshanDev
Copy link
Author

我给 server 端的 workerPoolSize 改成 1 了,整个 server 内部全部串行了,server mode 用的 DynamicBind 耗时直接暴涨了,改回 Hash 又降下去了。

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