8000 socket_select was incorrectly in blocking mode · notion/forkdaemon-php@e934b04 · GitHub
[go: up one dir, main page]

Skip to content

Commit e934b04

Browse files
author
Lindsay Snider
committed
socket_select was incorrectly in blocking mode
null being passed as a time out parameter was making it to the socket_select call. the intention was to have the socket_select call be in non blocking mode by defaulting to zero but passing null in made socket_select blocking. the result was the parent would hang until a child would finish before being able to process more work.
1 parent 6955b4e commit e934b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fork_daemon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ private function fetch_results($blocking = true, $timeout = 0, $bucket = self::D
14511451
private function post_results($bucket = self::DEFAULT_BUCKET)
14521452
{
14531453
// fetch all the results up to this point
1454-
$results = $this->fetch_results(false, null, $bucket);
1454+
$results = $this->fetch_results(false, 0, $bucket);
14551455
if (is_array($results) && empty($results))
14561456
return true;
14571457

0 commit comments

Comments
 (0)
0