Skip to content

fix: don't set zero size if size is unknown - #1141

Merged
hiroshihorie merged 3 commits into
livekit:mainfrom
holzgeist:fix-data-stream-size
Jul 28, 2026
Merged

fix: don't set zero size if size is unknown#1141
hiroshihorie merged 3 commits into
livekit:mainfrom
holzgeist:fix-data-stream-size

Conversation

@holzgeist

Copy link
Copy Markdown
Contributor

Sending zero instead of null confuses other sdks (at least rust), e.g. here

devin-ai-integration[bot]

This comment was marked as resolved.

@hiroshihorie

Copy link
Copy Markdown
Member

Pushed two small additions: streamBytes had the same issue so it now omits totalLength the same way, and added a changeset for the CI check. Verified against the generated protobuf code that null skips the field and that the old code did put an explicit 0 on the wire, JS and Swift and Rust all omit it when unknown. Thanks for the fix!

@hiroshihorie
hiroshihorie merged commit d3c53f2 into livekit:main Jul 28, 2026
15 checks passed
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