Skip to content

PHP_CLI_SERVER_WORKERS has no effect even with --no-reload option #54723

@alanfzf

Description

@alanfzf

Laravel Version

11.43.2

PHP Version

8.4.3

Database Driver & Version

No response

Description

As the title says it seems like PHP_CLI_SERVER_WORKERS has no effect even when i start the server with the following command php artisan serve --no-reload --host=0.0.0.0

Steps To Reproduce

  1. Set PHP_CLI_SERVER_WORKERS=5 env var
  2. Start the development server with php artisan serve --no-reload --host=0.0.0.0
  3. For e.g make a call to own internal api like this:
public function index(Request $request){ $appUrl = env('APP_URL'); // or with token what ever... $con = Http::withHeaders([ 'Accept' => 'application/json', 'Referer' => $appUrl, 'Cookie' => request()->header('Cookie'), 'X-CSRF-TOKEN' => csrf_token(), ])->baseUrl("$appUrl/api"); $response = $con->get('/users/', []); // curl hangs with 30 sec timeout, as the api request cannot be processed in parallel return view('users.index', ['data'=>$response->object()]); }

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions