Skip to content

Commit c9aaf23

Browse files
Fix timer table set failed (#650)
* Fix timer table set failed * Update octane.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 2a4bf1d commit c9aaf23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/createSwooleTimerTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require_once __DIR__.'/../src/Tables/TableFactory.php';
77

88
if (($serverState['octaneConfig']['max_execution_time'] ?? 0) > 0) {
9-
$timerTable = TableFactory::make(250);
9+
$timerTable = TableFactory::make($serverState['octaneConfig']['max_timer_table_size'] ?? 250);
1010

1111
$timerTable->column('worker_pid', Table::TYPE_INT);
1212
$timerTable->column('time', Table::TYPE_INT);

0 commit comments

Comments
 (0)