LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Randomly very long "Waiting for..." (on visitor's

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2005, 09:46 AM
Roman2K Roman2K is offline
Member
 
Join Date: Oct 2005
Posts: 11
Default Randomly very long "Waiting for..." (on visitor's

Hello,

I have set up a Virtual Host with an FastCGI External Application as context for the URI "/". The application is the dispatch.fcgi of a Rails application. When I access the virtualhost by its domain, the Rails application works :-).

The problem is when I refresh a page or access another (of the app) following a link, it is sometimes, randomly, very long and does not respond at all with the "Waiting for mydomain.com" in the status bar of Firefox. I must do another refresh and it can randomly do the same thing or show the requested page.

I think it is a bug of LiteSpeed. Do you have any idea of what is this problem ? What does it come from and how to solve it ?

Thank you in advance.
Reply With Quote
  #2  
Old 10-07-2005, 09:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can turn on debug logging by setting "Debug Level" to "high", you will find useful information there to help you identify the problem.

And if you want, you can PM us a temp login to your server, we can take a look.

George
Reply With Quote
  #3  
Old 10-07-2005, 10:26 AM
Roman2K Roman2K is offline
Member
 
Join Date: Oct 2005
Posts: 11
Thank you mistwang, check your PMs.
Reply With Quote
  #4  
Old 10-08-2005, 06:35 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It is fault of ruby's fcgi extension, you can either use the pure ruby fcgi code or patch the ext/fcgi/fcgi.c, search for "FCGX_Finish", then add a line of code:
Code:
FCGX_Free( data->req, 1 );
There might be other problems, like memory leak, in the fcgi extension. You can contact the author.

And the ruby FCGI extension does not use persistent FCGI connection, and it requires establishing a new connection for each request, but the existing connection has not been properly closed by the C extension.
Other web server like Apache or lighttpd does not take advantage of persistent connection either, so it appear OK for them.
Reply With Quote
  #5  
Old 10-08-2005, 03:07 PM
Roman2K Roman2K is offline
Member
 
Join Date: Oct 2005
Posts: 11
Thank you a lot George, the patch works. You really deserve sincere congratulations for your work and support of LSWS.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:44 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.