mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
docs: don't stop the worker script even if a connection with a client is aborted
This commit is contained in:
@@ -35,6 +35,9 @@ The following example shows how to create your own worker script without relying
|
||||
<?php
|
||||
// public/index.php
|
||||
|
||||
// Prevent worker script termination when a client connection is interrupted
|
||||
ignore_user_abort(true);
|
||||
|
||||
// Boot your app
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user