Skip to content

reloading #5354

Answered by henrywood
rbro asked this question in Q&A
Jun 2, 2024 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Maybe try something like:

$this->server = new Swoole\Http\Server("127.0.0.1", 9501, SWOOLE_BASE);

$this->server->set([
... other options here ...
'worker_num' => 2, // The number of worker processes to start
]);

If that does not work, try:

$this->server = new Swoole\Http\Server("127.0.0.1", 9501, SWOOLE_PROCESS);

$this->server->set([
... other options here ...
'worker_num' => 2, // The number of worker processes to start
]);

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rbro
Comment options

Comment options

You must be logged in to vote
2 replies
@rbro
Comment options

@rbro
Comment options

Answer selected by rbro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants