Just today I was hit by https://github.com/unbit/uwsgi/issues/1126, which
didn't manifest with `runserver`, because uwsgi optimizes this using
`sendfile`. However, this is not a combination that works when you're
using `BytesIO` instead of actual file handles, and uwsgi will error.
Of course, this is a very uwsgi-specific thing, and I'm not sure if it
happens with gunicorn or other wsgi-servers too, but it might be good to
document this where the usage of `wsgi.file_wrapper` is documented.
--
Ticket URL: <https://code.djangoproject.com/ticket/31563>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
It's too niche IMO. We cannot document all caveats.
--
Ticket URL: <https://code.djangoproject.com/ticket/31563#comment:1>