#36293: Add test to verify non-blocking behavior of compress_sequence() with
zfile.flush()
-------------------------------+--------------------------------------
Reporter: huoyinghui | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 5.2
Severity: Normal | Resolution:
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
-------------------------------+--------------------------------------
Description changed by huoyinghui:
Old description:
> 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
New description:
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/19335
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36293#comment:2>
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/01070195fa4b6f10-ad09a65d-d540-4e13-93f4-1373c8d0f692-000000%40eu-central-1.amazonses.com.