Skip to content

Return publish frame buffer to pool after send#142

Merged
carlhoerberg merged 5 commits intomainfrom
bug137
Jun 12, 2025
Merged

Return publish frame buffer to pool after send#142
carlhoerberg merged 5 commits intomainfrom
bug137

Conversation

@carlhoerberg
Copy link
Copy Markdown
Member

Fixes #137

Copy link
Copy Markdown
Contributor

@antondalgren antondalgren left a comment

Choose a reason for hiding this comment

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

If sendFrames rejects, the bufferPool will never get the buffer back. Is that intended and handled in another place?

so that it's returned even if the send is rejected
@carlhoerberg
Copy link
Copy Markdown
Member Author

If sendFrames rejects, the bufferPool will never get the buffer back. Is that intended and handled in another place?

good catch, fixed in latest commit, returned to pool on finally instead

Comment thread test/tls.ts Outdated
Co-authored-by: Anton Dalgren <antondalgren@users.noreply.github.com>
@carlhoerberg carlhoerberg merged commit ea7bcca into main Jun 12, 2025
6 checks passed
@carlhoerberg carlhoerberg deleted the bug137 branch June 12, 2025 20:41
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.

Encountering "501 FRAME_ERROR" during asynchronous batch publishing

2 participants