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

Default Server Mode #47

Open
ghnp5 opened this issue Jun 26, 2023 · 0 comments · May be fixed by openswoole/ide-helper#28
Open

Default Server Mode #47

ghnp5 opened this issue Jun 26, 2023 · 0 comments · May be fixed by openswoole/ide-helper#28

Comments

@ghnp5
Copy link

ghnp5 commented Jun 26, 2023

Hey

The Server's constructor stub in https://github.com/openswoole/ide-helper has this:

    public function __construct(string $host, int $port = 0, int $mode = \OpenSwoole\Server::SIMPLE_MODE, int $sockType = \OpenSwoole\Constant::SOCK_TCP)
    {
    }

But the docs here - https://openswoole.com/docs/modules/swoole-server-construct
say:

OpenSwoole\Server::POOL_MODE: Multi process mode, the business logic is running in the child processes, this is the default running mode of a server

Which is correct?

Btw, the description in the docs for SIMPLE_MODE has a typo: "simalar" => "similar" 👍🏼

Thank you!

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

Successfully merging a pull request may close this issue.

1 participant