Skip to content

fix(io): fix readAllSync for the case when read source is slow - #6355

Merged
kt3k merged 3 commits into
denoland:mainfrom
kt3k:fix-io-fix-read-all-sync
Jan 22, 2025
Merged

fix(io): fix readAllSync for the case when read source is slow#6355
kt3k merged 3 commits into
denoland:mainfrom
kt3k:fix-io-fix-read-all-sync

Conversation

@kt3k

@kt3k kt3k commented Jan 22, 2025

Copy link
Copy Markdown
Contributor

This PR fixes readAllSync when the source stream outputs data slowly.

The bug was introduced in #4128 when we rewrite it without using Buffer class.

closes #6346

@github-actions github-actions Bot added the io label Jan 22, 2025
@github-actions github-actions Bot added the async label Jan 22, 2025
@codecov

codecov Bot commented Jan 22, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (5af091b) to head (48d1fdd).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6355      +/-   ##
==========================================
+ Coverage   96.33%   96.34%   +0.01%     
==========================================
  Files         552      552              
  Lines       41938    41937       -1     
  Branches     6354     6356       +2     
==========================================
+ Hits        40399    40406       +7     
+ Misses       1499     1490       -9     
- Partials       40       41       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsherret dsherret left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k
kt3k merged commit 8e64d00 into denoland:main Jan 22, 2025
@kt3k
kt3k deleted the fix-io-fix-read-all-sync branch January 22, 2025 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@std/io: readAllSync only reads a single line from Deno.stdin when stdin is interactive

2 participants