-
Notifications
You must be signed in to change notification settings - Fork 7
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: race condition between WriteStream
close and process exit
#281
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #281 +/- ##
==========================================
+ Coverage 74.19% 74.60% +0.40%
==========================================
Files 7 7
Lines 124 126 +2
Branches 28 29 +1
==========================================
+ Hits 92 94 +2
Misses 32 32
|
Yeah, we should abandon the old node versions, and I've just noticed this is still on TravisCI ... thanks for the PR, we'll get back to you on this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Thanks @andrewjanssen
We'll need to merge #284 first
@andrewjanssen we've reworked our CI to run in Github and done some package updates, can you update your branch and bump the version in |
Done! |
Looks great! Tests pass, thanks for the contribution @andrewjanssen ! |
fixes: #283 |
The process may exit before the
WriteStream
finishes writing to the target file. For example, I have a small release file for which only the first of two stream chunks is downloaded because the process terminates first, resulting in a corrupted file.Thank you for this useful package!