otherwise PHP may not notice when the webclient is gone.
Then the process could exist 'forever' and hang Apache after it
has gone through all it threads/processes.
{
$res = $rpc->eventloop();
if (!$res)
+ {
+ /* Output at least something every timeout (10) seconds,
+ * otherwise PHP may not
+ * notice when the webclient is gone.
+ */
+ echo "\n";
continue;
+ }
send_sse($res);
}
}
{
$res = $rpc->eventloop();
if (!$res)
+ {
+ /* Output at least something every timeout (10) seconds,
+ * otherwise PHP may not
+ * notice when the webclient is gone.
+ */
+ echo "\n";
continue;
+ }
send_sse($res);
}
}