asgi-gzip 0.3

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Anyone running Datasette with datasette-gzip can now serve Server-Sent Events in production without the gzip middleware silently breaking the event stream.

Read this as

Simon Willison released version 0.3 of asgi-gzip, a small open-source Python library that compresses web traffic to speed it up. It previously broke a technology called Server-Sent Events, which lets a web page receive live updates from a server, by compressing them incorrectly. The fix matters to people running Datasette, his data-exploration tool, whose gzip add-on depends on this library.

This is a minor bugfix release (asgi-gzip 0.3), not a strategic development. The bug broke Server-Sent Events on production Datasette instances using the datasette-gzip plugin, so operators deploying streaming features hit failures. The root cause was a maintenance gap: an automated workflow that syncs fixes from the upstream Starlette project had silently stopped running. Operators can update today; the cost of not doing so is broken streaming endpoints.

asgi-gzip, an ASGI middleware extracted from Starlette, was compressing text/event-stream SSE responses incorrectly; Starlette had fixed the same bug upstream but asgi-gzip's GitHub Actions scheduled workflow that checks for updates had stopped running and missed the port. Version 0.3 integrates that fix, so datasette-gzip and asgi-gzip now handle text/event-stream correctly. No benchmarks or other changes are documented.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

asgi-gzip 0.3 datasette-gzip Datasette Starlette GitHub Actions Server-Sent Events

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading