[uWSGI] remove file after sendfile

Damjan Georgievski gdamjan at gmail.com
Fri Mar 18 11:56:13 CET 2016


if you have a file descriptor open you can unlink the file from the
filesystem, the file will be actually removed once the fd is closed.

On 18 March 2016 at 10:50, Руслан Закиров <ruz at sports.ru> wrote:

> Hi,
>
> I've setup an app that serves files after processing using sendfile and I
> want to remove them after serving to the client. Can I setup post-sendfile
> hook or something like that? Or do I have to setup files watcher and remove
> old?
>
> --
> Руслан Закиров
> Руководитель отдела разработки веб-сервисов
> +7(916) 597-92-69, ruz @  <http://www.sports.ru/>
>
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
>


-- 
damjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20160318/1b0f0860/attachment.html>


More information about the uWSGI mailing list