Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jan 22, 2025

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
Copy link

codecov bot commented Jan 22, 2025

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.

Copy link
Member

@dsherret dsherret left a comment

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
18 checks passed
@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