Hi, when I upload a file (big or small) I get this error line in error.log: a client request body is buffered to a temporary file /usr/local/nginx/client_body_temp/0000000075 The error log marks it as warning. During the upload of a big file I expect to find the above mentioned file in the directory, but it's empty. Any idea? Thnaks, Andrea -- Andrea Soracchi - Netbuilder S.r.l. Multidialogo : La storia e' fatta da chi sa comunicare System Engineer // t. +39 0521 247791 // f. +39 0521 7431140 // www.netbuilder.it
on 2012-09-10 16:04
on 2012-09-10 16:11
Hello! On Mon, Sep 10, 2012 at 04:04:09PM +0200, Andrea Soracchi wrote: > Any idea? It should be empty, as nginx unlink()s temporary files as soon as they are created (unless you've set client_body_in_file_only in your config, see http://nginx.org/r/client_body_in_file_only). Maxim Dounin
on 2012-09-10 16:27
Hi, but nginx should remove the file only after the upload has been completed. Or no? ----- Messaggio originale ----- Da: "Maxim Dounin" <mdounin@mdounin.ru> A: nginx@nginx.org Inviato: Lunedì, 10 settembre 2012 16:10:54 Oggetto: Re: Error log Hello! On Mon, Sep 10, 2012 at 04:04:09PM +0200, Andrea Soracchi wrote: > Any idea? It should be empty, as nginx unlink()s temporary files as soon as they are created (unless you've set client_body_in_file_only in your config, see http://nginx.org/r/client_body_in_file_only). Maxim Dounin _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
on 2012-09-10 16:44
Hello! On Mon, Sep 10, 2012 at 04:27:14PM +0200, Andrea Soracchi wrote: > Hi, > > but nginx should remove the file only after the upload has been completed. > > Or no? No. File is unlink()ed once it's created, and nginx will work with it via an already opened file descriptor. This way temporary file is automatically deleted once corresponding file descriptor is closed, even if something goes completely wrong (e.g. nginx is killed with signal 9). Maxim Dounin
on 2012-09-10 17:25
Hi, ok, thanks! Have a nice day! ----- Messaggio originale ----- Da: "Maxim Dounin" <mdounin@mdounin.ru> A: nginx@nginx.org Inviato: Lunedì, 10 settembre 2012 16:44:11 Oggetto: Re: Error log Hello! On Mon, Sep 10, 2012 at 04:27:14PM +0200, Andrea Soracchi wrote: > Hi, > > but nginx should remove the file only after the upload has been completed. > > Or no? No. File is unlink()ed once it's created, and nginx will work with it via an already opened file descriptor. This way temporary file is automatically deleted once corresponding file descriptor is closed, even if something goes completely wrong (e.g. nginx is killed with signal 9). Maxim Dounin > > > The error log marks it as warning. > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.