Re: FastCGI/Ruby Problem

"Zev Blut" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
On Sun, 17 Oct 2004 17:04:44 -0500, Michael Lovitt <[email protected]>  
wrote:

> We're running a Ruby web application (using Rails), and it
> intermittently causes FastCGI to timeout, which results in this error
> in apache.log:

[...]

> In the browser, the page appears to be loading for the full 30 seconds
> (although most of the HTML appears immediately, with the last 1/6th of
> it or so cut off at the bottom). When 30 seconds have passed, the
> error appears in apache.log and the page finishes loading in its
> entirety. From the user's perspective, the page loaded succesfully, it
> just took a very long time. The log of course tells a different story.
>
> We're stumped. Has anyone experienced anything like this?

There is a bug in the Pure Ruby implementation of the FCGI interface.
If the result is greater than 8KB than it will take a very long time
to send the rest of the data.  Try running it with the C version of
the Ruby FCGI interface.

To confirm if you are using the C interface try this command:
"ruby -e 'puts require "fcgi.so"' "

If it returns true then you are using the C interface.  If it is
false then the Pure Ruby interface will take over and create a problem
that is similar to what you have described.

I hope that helps.
Zev

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.