Skip to content

fix(fragment): handle manual masks in collector#139

Closed
divybot wants to merge 1 commit into
mainfrom
orch/divybot-513
Closed

fix(fragment): handle manual masks in collector#139
divybot wants to merge 1 commit into
mainfrom
orch/divybot-513

Conversation

@divybot

@divybot divybot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Handle manual masking with FragmentCollector when server-side auto_apply_mask is disabled. Whole masked frames now pass through so callers can still manually frame.unmask(), while fragmented masked text/binary frames are unmasked per fragment before accumulation because the final aggregate cannot carry per-fragment mask keys. Frame::unmask() also clears the mask key after applying it so auto-unmasked frames are no longer treated as masked later.

Tests cover unfragmented manual unmasking plus fragmented masked text and binary through an in-memory websocket stream.

Refs #103
Closes denoland/divybot#513

Comment thread src/fragment.rs Outdated
Co-Authored-By: Divy Srivastava <me@littledivy.com>
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.

2 participants