# Fcgi timeout

**URL:** <https://www.ruby-forum.com/t/fcgi-timeout/180133>\
**Category:** Rails\
**Created:** [December 12, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/fcgi-timeout/180133 "2009-12-12T13:53:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vetrivel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/dc4da7/32.png) [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Post date:** [December 12, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/fcgi-timeout/180133/1 "2009-12-12T13:53:19Z")

</div>

How to increase the fcgi timeout .

my action takes more than 30 seconds , to bring the response from my  
database . Afetr reaching 30 seconds , apache2 kill my fcgi process and  
I am getting application error in my frient end . Any solution to  
increase the fcgi timeout .

---

<div class="post-metadata">

**Author:** ![vetrivel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/dc4da7/32.png) [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Post date:** [December 12, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/fcgi-timeout/180133/2 "2009-12-12T17:23:45Z")

</div>

Vetrivel V. wrote:

> How to increase the fcgi timeout .
> 
> my action takes more than 30 seconds , to bring the response from my  
> database . Afetr reaching 30 seconds , apache2 kill my fcgi process and  
> I am getting application error in my frient end . Any solution to  
> increase the fcgi timeout .

I’m sure there’s a way…but why is your DB query taking more than 30  
seconds? That should never happen. Let’s see the code.

Best,  
–Â  
MarnenÂ Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![vetrivel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/dc4da7/32.png) [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Post date:** [December 14, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/fcgi-timeout/180133/3 "2009-12-14T16:35:03Z")

</div>

Thanks for your reply .

```
   I have to run 10 query for a single report . If the persons 

```

selects one month date , the query takes more then 30 seconds to bring  
the output . I am using index scan in my database . Any idea . As of  
now i am running as cgi .

Thanks

Marnen Laibow-Koser wrote:

> Vetrivel V. wrote:
> 
> > How to increase the fcgi timeout .
> > 
> > my action takes more than 30 seconds , to bring the response from my  
> > database . Afetr reaching 30 seconds , apache2 kill my fcgi process and  
> > I am getting application error in my frient end . Any solution to  
> > increase the fcgi timeout .
> 
> I’m sure there’s a way…but why is your DB query taking more than 30  
> seconds? That should never happen. Let’s see the code.
> 
> ## Best,
> 
> Marnen Laibow-Koser  
> [http://www.marnen.org](http://www.marnen.org)  
> removed\_email\_address@domain.invalid
