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

Run Workerman in daemon mode with Windows #1017

Closed
joanhey opened this issue Feb 26, 2024 · 2 comments
Closed

Run Workerman in daemon mode with Windows #1017

joanhey opened this issue Feb 26, 2024 · 2 comments

Comments

@joanhey
Copy link
Contributor

joanhey commented Feb 26, 2024

Running the Testman functional tests in GH actions with Win OS, stop indefinitely after run it.
Like if it was without daemon mode, and awaiting to finish.

If we use Symfony/Proccess work without problems.

Is it Workerman working in daemon mode in Windows?
Or we do anything bad ?

Windows

https://github.com/joanhey/TestMan/actions/runs/8039629986/job/21956826330#step:6:12
image

Ubuntu

https://github.com/joanhey/TestMan/actions/runs/8039629986/job/21956826073#step:6:12
image

Also work OK with Mac OS.
Workflow: https://github.com/joanhey/TestMan/actions/runs/8039629986/workflow

Another curios fact, is that in windows install Workerman v4.0.0 and not v4.1.15 !!!
Edit: It seems that is for the constrains in the composer.json. We'll need to think a solution for win.

image
Edit: It seems than in windows is not working correctly the Caret Version Range (^), but work OK with Tilde Version Range (~). But still fail the daemon mode with windows, with workerman v4.1.15.

PD: It'll be good to show at start in the info panel, in which OS is running.
Now we show Workerman version, PHP version and event lib using.

@walkor
Copy link
Owner

walkor commented Feb 28, 2024

Workerman does not support daemon mode on Windows. Due to the lack of support for the posix pcntl module in PHP on Windows, many features cannot be implemented. I suggest temporarily not running unit tests on Windows, and only running them on Linux and Mac OS.

@joanhey
Copy link
Contributor Author

joanhey commented Mar 3, 2024

I'll use a php process.
Thank you!

@joanhey joanhey closed this as completed Mar 3, 2024
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