Skip to content

Commit

Permalink
add iouring constant
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Dec 21, 2024
1 parent ff7f1a7 commit 95e6863
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/Server/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ class Helper
'dns_lookup_random' => true,
'use_async_resolver' => true,
'enable_coroutine' => true,
'iouring_entries' => true,
'iouring_workers' => true,
'iouring_flag' => true,
];

public const COROUTINE_OPTIONS = [
Expand Down Expand Up @@ -243,7 +246,7 @@ public static function onWorkerStart(Server $server, int $workerId): void
if ($stats_file->endsWith('.json')) {
$out = json_encode($stats, JSON_THROW_ON_ERROR);
} elseif ($stats_file->endsWith('.php')) {
$out = "<?php\nreturn " . var_export($stats, true) . ";\n";
$out = "<?php\nreturn ".var_export($stats, true).";\n";
} else {
$lines = [];
foreach ($stats as $k => $v) {
Expand Down

0 comments on commit 95e6863

Please sign in to comment.