Support for sendfile
Support sendfile usage.
Would require an ASGI extension.
Relevant:
- https://github.com/aio-libs/aiohttp/issues/1093
- https://github.com/MagicStack/uvloop/issues/61
- https://twitter.com/1st1/status/1017771823130431490
Are there any estimate when will V1.2 milestone come out?
https://asgi.readthedocs.io/en/latest/extensions.html#zero-copy-send The relevant ASGI documentation has been completed.
Given @tomchristie 's comment on the PR that implemented sendfile support, and the fact that there were not many interested in this feature over the years, I'll be closing this issue.
If people are interested, we can always reevaluate this decision.
@Kludex If/when this feature gets developed I will merge zerocopysend support into WhiteNoise.
Adding support within WhiteNoise would be fairly quick, but I don't know if I will have time on the immediate horizon to PR this into uvicorn. I have too many prior OSS commitments so it would most likely be a year or two before I could get to this.
I would also like to express my interest in this feature as my server does quite a bit of file-io which I would like to offload
Related:
- https://github.com/django/asgiref/issues/423