mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
Solves race condition.
This commit is contained in:
4
testdata/request-sender.php
vendored
4
testdata/request-sender.php
vendored
@@ -5,4 +5,8 @@ $workerName = $_GET["workerName"] ?? '';
|
||||
|
||||
frankenphp_send_request($message, $workerName);
|
||||
|
||||
// sleep to make sure request was received
|
||||
// TODO: solve this test-restart race condition with Futures instead?
|
||||
usleep(10_000);
|
||||
|
||||
echo "request sent";
|
||||
|
||||
Reference in New Issue
Block a user