Skip to content

[Swoole] Make StreamedResponse chunk size configurable - #194

Open
outcomer wants to merge 4 commits into
php-runtime:mainfrom
outcomer:feature/configurable-sse-chunk-size
Open

[Swoole] Make StreamedResponse chunk size configurable#194
outcomer wants to merge 4 commits into
php-runtime:mainfrom
outcomer:feature/configurable-sse-chunk-size

Conversation

@outcomer

@outcomer outcomer commented Aug 3, 2026

Copy link
Copy Markdown

Hardcoded 4096-byte ob_start() threshold starves SSE - small, time-spaced writes never reach the client until the buffer fills or the response ends. Adds a streamed_response_chunk_size ServerFactory option (default 4096, unchanged behavior), grouped into a BridgeOptions value object.

Hardcoded 4096-byte ob_start() threshold starves SSE — small, time-spaced
writes never reach the client until the buffer fills or the response ends.
Adds a `streamed_response_chunk_size` ServerFactory option (default 4096,
unchanged behavior), grouped into a BridgeOptions value object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant