Skip to content

Default Server Mode #47

Open
openswoole/ide-helper
#28
@ghnp5

Description

@ghnp5

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions