Skip to content

Conversation

@wayfarer3130
Copy link
Collaborator

Fixes a number of crash issues caused by not handling promise rejections correclty and various other issues.

@wayfarer3130 wayfarer3130 requested a review from rleisti January 28, 2026 00:53
streamInfo.failed = true;

// Terminate the stream by destroying it
try {
Copy link
Collaborator

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 () => {
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants