Fix misleading keepalive comment in PHP server
The comment said keepalives were sent every 15 seconds, but the code uses sleep(1), so they're actually sent every 1 second. This is correct for SSE connections - frequent keepalives prevent proxy timeouts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -128,7 +128,7 @@ function handleStream() {
|
|||||||
$lastCount = $currentCount;
|
$lastCount = $currentCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send keepalive comment every 15 seconds
|
// Send keepalive comment every 1 second (keeps SSE connection alive)
|
||||||
echo ": keepalive\n\n";
|
echo ": keepalive\n\n";
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user