Fastcgi_max_temp_file_size 0 vs fastcgi_buffering off

Is fastcgi_max_temp_file_size 0; and fastcgi_buffering off; the same ?

If no what is the difference between those two

Posted at Nginx Forum:

Hello!

On Tue, Aug 25, 2015 at 09:44:49AM -0400, khav wrote:

Is fastcgi_max_temp_file_size 0; and fastcgi_buffering off; the same ?

No.

If no what is the difference between those two

The first one switches off buffering to disk.

The second one switches fastcgi module to the unbuffered mode. In
this mode all data read will be immediately delivered to a client.

See Module ngx_http_fastcgi_module for details.


Maxim D.
http://nginx.org/

For video streaming which option will be the best according to you

I currently use fastcgi_max_temp_file_size 0

fastcgi_connect_timeout 60;

Posted at Nginx Forum: