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

[11.x] Improves serve Artisan command #50821

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Conversation

nunomaduro
Copy link
Member

This pull request fixes: #50033, #50041, #48924, and honestly, is is an overall improvement to any other PR that complained about artisan serve throwing exceptions after being used for a while.

We've applied a technique I picked up last week while working on Pint, which is to only consider the output "finished" when there's a line separator.

So, if a process gives the following output:

[GET] 200 /foo
[GET] 20

I will actually wait for the 0 /foo on the second time the output closure is executed, before actually displaying the output referring to that line.

I've stress-tested this PR using Pest's stressless plugin, with and without the PHP_CLI_SERVER_WORKERS environment variable, and not a single request was lost while serving a regular Laravel application with Jetstream.

@nunomaduro nunomaduro marked this pull request as ready for review March 29, 2024 13:30
@taylorotwell taylorotwell merged commit bcc3044 into 11.x Mar 29, 2024
31 checks passed
@taylorotwell taylorotwell deleted the feat/improves-serve-command branch March 29, 2024 14:15
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 this pull request may close these issues.

3 participants