From manual page: https://php.net/function.connection-status Hi, I tested this using PHP 7.4 but it does not detect disconnect, I try to stop and close the browser. ``` <?php ignore_user_abort(true); set_time_limit(0); while(1) { echo "\n"; ob_flush(); flush(); // Did the connection fail? if(connection_status() != CONNECTION_NORMAL) { break; } sleep(1); } ``` ---