OK I solved this problem, it seems that return proc.stdout
works. Because stdout is really an iterable fd. Thanks for the help. On Wed, Aug 28, 2013 at 5:56 PM, Roberto De Ioris <[email protected]> wrote: > > >> 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 >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
