Skip to content

Commit 02dad38

Browse files
committed
Explain why we subtract 5.
1 parent 502187a commit 02dad38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wpephpcompat.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ public function start_test() {
177177
// Close the connection to the browser.
178178
$this->close_connection("started");
179179

180-
// Kill cron after a configurable timeout.
180+
/**
181+
* Kill cron after a configurable timeout.
182+
* Subtract 5 from the timeout if we can to avoid race conditions.
183+
*/
181184
set_time_limit( ( $timeout > 5 ? $timeout - 5 : $timeout ) );
182185
}
183186

0 commit comments

Comments
 (0)