#2131: [patch] HttpResponseSendFile for serving static files handler-specific sendfile mechanism -----------------------------------------------+---------------------------- Reporter: ymasuda[at]ethercube.com | Owner: alsleme Status: new | Milestone: 1.1 beta Component: Core framework | Version: SVN Resolution: | Keywords: Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 1 Needs_better_patch: 0 | -----------------------------------------------+---------------------------- Comment (by grahamd):
BTW, mod_wsgi 2.0 through 2.3 has an issue that can occur under certain conditions, with a file returned using wsgi.file_wrapper being truncated when size is > 255 and < ~8000 bytes. This is due to an obscure Apache optimisation. The issue will be fixed in mod_wsgi 2.4. Details, with a description of fix, can be found at: http://code.google.com/p/modwsgi/issues/detail?id=132 One also should not use mod_wsgi 2.0 through 2.1, which can also truncate a file returned using wsgi.file_wrapper if it contains an embedded null character. -- Ticket URL: <http://code.djangoproject.com/ticket/2131#comment:30> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---