yiisoft / yiisoft/yii-debug-api

Fix server sent events stream buffers reading

Open
#121 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.