yiisoft / yiisoft/yii-debug-api
Fix server sent events stream buffers reading
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 17
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
See https://github.com/yiisoft/yii-debug-api/blob/23c4bea89ecd8e45038df9f0eab77ca59a4d9033/src/ServerSentEventsStream.php#L78 (https://github.com/yiisoft/yii-debug-api/pull/117)
The stream doesn't read as enough as requested bytes. Should be fixed with intermediate buffer inside the stream.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/ServerSentEventsStream.php at line 78 and review the referenced pull request 117 to understand the current stream-reading behavior. Verify how many bytes are returned when more data is requested than the stream supplies, then confirm that an intermediate buffer allows the requested amount to be read.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100