- Notifications
You must be signed in to change notification settings - Fork 11.7k
Labels
Description
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
- Set
PHP_CLI_SERVER_WORKERS=5env var - Start the development server with
php artisan serve --no-reload --host=0.0.0.0 - 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()]); }