chrome-php / chrome

Instrument headless chrome/chromium instances from PHP
MIT License
2.28k stars 278 forks source link

Make it really persistent #233

Closed Entretoize closed 3 years ago

Entretoize commented 3 years ago

As reported in several threads, chrome process is kill by the symfony Process class, can you just add the code as suggested by ttk here ?

GrahamCampbell commented 3 years ago

The code suggested there looks like a bad idea. Something like https://github.com/laravel/octane/pull/182 is probably the better approach. Please feel free to send a PR, and I'll take a look.

GrahamCampbell commented 3 years ago

This is already supported. You should use the keepAlive option: https://github.com/chrome-php/chrome#options.

As of v0.11.0, we no longer check the chrome binary version, so issues with duplicate processes should be now resolved.