# Fastcgi\_connect\_timeout

**URL:** <https://www.ruby-forum.com/t/fastcgi-connect-timeout/176648>\
**Category:** NGINX\
**Created:** [October 3, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176648 "2009-10-03T23:28:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davy\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bb73d2/32.png) [@Davy\_C](https://www.ruby-forum.com/u/Davy_C)\
**Post date:** [October 3, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176648/1 "2009-10-03T23:28:41Z")

</div>

Does anyone what the defaults are for fastcgi\_connect\_timeout and how it  
works? It seems like at first when one of my upstream backends was  
down,  
that it waited 10-11 seconds before trying an alternate, but then after  
a  
few failures it started only waiting 3 seconds to try the alternate.  
Davy

---

<div class="post-metadata">

**Author:** ![Davy\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bb73d2/32.png) [@Davy\_C](https://www.ruby-forum.com/u/Davy_C)\
**Post date:** [October 5, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/fastcgi-connect-timeout/176648/2 "2009-10-05T17:22:06Z")

</div>

Hello!

On Sat, Oct 03, 2009 at 05:19:04PM -0400, Davy C. wrote:

> Does anyone what the defaults are for fastcgi\_connect\_timeout and how it  
> works? It seems like at first when one of my upstream backends was down,  
> that it waited 10-11 seconds before trying an alternate, but then after a  
> few failures it started only waiting 3 seconds to try the alternate.

fastcgi\_connect\_timeout defaults to 60 seconds

It works exactly as other timeouts do - it’s armed on connect  
start, and fires after specified time.

Change in timings “after a few failures” likely to be caused by  
max\_fails / fail\_timeout, see

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

for details.

Exact numbers you specify seems to be unrelated to timeouts  
though. It’s likely to be caused by overloaded backends instead.  
For pure timeouts you should see something like 60 seconds before  
max\_fails reached, and 0 seconds after.

Maxim D.
