#36293: Add test to verify non-blocking behavior of compress_sequence() with
zfile.flush()
-------------------------------+-----------------------------------------
Reporter: huoyinghui | Type: Uncategorized
Status: new | Component: Uncategorized
Version: 5.2 | Severity: Normal
Keywords: gzip blocking | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------------------------
This ticket proposes adding a test to confirm that `compress_sequence()`
in `django.utils.text` correctly flushes each chunk during gzip streaming.
The absence of `zfile.flush()` would cause compressed output to be
buffered,
delaying response delivery in streaming contexts. This test uses timed
chunk generation to verify that data is emitted approximately once per
second,
indicating that gzip output is non-blocking when `flush()` is used.
See related PR: https://github.com/django/django/pull/XXXXX
--
Ticket URL: <https://code.djangoproject.com/ticket/36293>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070195fa4541c3-3c50f03b-04db-4b66-bb8b-2b4c8ee2061b-000000%40eu-central-1.amazonses.com.