connectionStatusLog.php 291 B

12345678910111213141516
  1. <?php
  2. ignore_user_abort(true);
  3. require_once __DIR__.'/_executor.php';
  4. return function () {
  5. if($_GET['finish'] ?? false) {
  6. frankenphp_finish_request();
  7. }
  8. echo 'hi';
  9. flush();
  10. $status = (string) connection_status();
  11. error_log("request {$_GET['i']}: " . $status);
  12. };