SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Fix subs when clients use variying compression

Open Centril opened this issue 9 months ago • 0 comments

Description of Changes

  1. Previously, we had a bug when multiple clients would subscribe to the same query and protocol (bsatn) but with different compression algorithms. This PR fixes that by memoizing once per compression algo.
  2. As part of the fix, it was also discovered that the rust sdk gzip decompression was broken. This PR fixes that too.

API and ABI breaking changes

None

Expected complexity level and risk

2

Testing

A regression test is added to confirm the bugs are fixed.

Centril avatar Mar 11 '25 19:03 Centril