# Fastcgi\_max\_temp\_file\_size 0 vs fastcgi\_buffering off

**URL:** <https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140>\
**Category:** NGINX\
**Created:** [August 25, 2015, 3:45pm UTC](https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140 "2015-08-25T15:45:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 25, 2015, 3:45pm UTC](https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140/1 "2015-08-25T15:45:27Z")

</div>

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:

> **[fastcgi\_max\_temp\_file\_size 0 vs fastcgi\_buffering off](https://forum.nginx.org/read.php?2,261232,261232#msg-261232)**
>
> Is fastcgi\_max\_temp\_file\_size 0; and fastcgi\_buffering off; the same ? If no what is the difference between those two

---

<div class="post-metadata">

**Author:** ![khav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e56c9b/32.png) [@khav](https://www.ruby-forum.com/u/khav)\
**Post date:** [August 25, 2015, 3:57pm UTC](https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140/2 "2015-08-25T15:57:43Z")

</div>

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](http://nginx.org/r/fastcgi_buffering) for details.

–  
Maxim D.

> **[nginx](http://nginx.org/)**

---

<div class="post-metadata">

**Author:** ![khav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e56c9b/32.png) [@khav](https://www.ruby-forum.com/u/khav)\
**Post date:** [August 25, 2015, 4:04pm UTC](https://www.ruby-forum.com/t/fastcgi-max-temp-file-size-0-vs-fastcgi-buffering-off/243140/3 "2015-08-25T16:04:09Z")

</div>

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:

> **[Re: fastcgi\_max\_temp\_file\_size 0 vs fastcgi\_buffering off](https://forum.nginx.org/read.php?2,261232,261235#msg-261235)**
>
> Is fastcgi\_max\_temp\_file\_size 0; and fastcgi\_buffering off; the same ? If no what is the difference between those two
