Hello. I'm running a Django app served by uWSGI standalone. One of the views needs to send a file as a response, after doing some DB lookups. What is the most efficient way to send a static file to the client in this situation? I can't offload this to another server (X-Sendfile or X-Accel) since there isn't one. Should I use wsgi.file_wrapper? There is a patch (https://code.djangoproject.com/ticket/2131) under review which aims to add this feature.
Another question that I have is that, since I'm using the GEvent loop, will the worker be busy while sending the file to the client therefore starving the greenlets of that worker? I ask this because the Gevent monkey patching that I rely on will not affect the socket calls done by uwsgi while serving the file, therefore they may block. Best regards, André _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
