>> infact it internally calls sendfile() > > If that's the case, then the reason it fails because sendfile() only works > from real file fd to a socket fd. > > Does stdout count as local file fd? > >
It is a pipe, so instead of sendfile() you can use splice() and friends (only on linux obviously). I really do not know if it is worthy to make such a check for a function expressely aimed at file serving -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
