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

3.0 的热更新功能 #273

Open
crazywhalecc opened this issue Jan 28, 2023 · 0 comments
Open

3.0 的热更新功能 #273

crazywhalecc opened this issue Jan 28, 2023 · 0 comments
Labels
enhancement 新功能请求 wontfix 不予解决或无法解决的问题

Comments

@crazywhalecc
Copy link
Member

crazywhalecc commented Jan 28, 2023

描述

由于 2.x 的热更新(以及 polling-watch)都是仅适用于 Swoole 的,3.0 的环境下,Windows 不支持(需要在使用 --watch 时发出提示语句),单进程模式不支持(即只有一个 Master 没有 Worker 的情况),剩下的情况需要适配不同驱动。

例如,Swoole 可继续使用创建子进程进行监听,继续沿用之前的 2.x,但 Workerman 在 libob 的 Driver 层面是一个未完全封装的状态,比如设置了 UserProcessStartEvent 时自动创建一个 UserProcess。但两个驱动的 UserProcess 创建和底层 EventLoop 均未做过任何测试,发生的行为都是未知的。

所以,咋办呢?这也算是一个特性上简单但实现比较麻烦的功能了。

例子

No response

Tasks

No tasks being tracked yet.
@crazywhalecc crazywhalecc added the enhancement 新功能请求 label Jan 28, 2023
@crazywhalecc crazywhalecc added the wontfix 不予解决或无法解决的问题 label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 新功能请求 wontfix 不予解决或无法解决的问题
Projects
None yet
Development

No branches or pull requests

1 participant