-
Notifications
You must be signed in to change notification settings - Fork 25
Fix/stow response fix #111
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
base: master
Are you sure you want to change the base?
Conversation
…rect-pixel-representation
| streamInfo.failed = true; | ||
|
|
||
| // Terminate the stream by destroying it | ||
| try { |
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.
Closing all internal stream should be a responsibility of the StreamInfo class
| import { StreamInfo } from '../lib/instance/StreamInfo.mjs'; | ||
|
|
||
| describe('StreamInfo write and end', () => { | ||
| test('writes Buffer, array of Buffer and TypedArray via write(); returns backpressure; queues when busy', async () => { |
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 test only validates negative backpressure (returning true): there isn't a case to validate when write returns false
Fixes a number of crash issues caused by not handling promise rejections correclty and various other issues.