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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Perpetual high amount of Requests until restart...

Reply
 
Thread Tools Display Modes
  #11  
Old 08-21-2009, 01:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
you need to increase
http://www.litespeedtech.com/docs/we...g/#connTimeout

If a script indeed takes more than 30 seconds to finish, otherwise, need to trouble shoot the script why it takes so long.
Reply With Quote
  #12  
Old 08-21-2009, 01:42 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
It's happening on page loads that are instant (or near instant).

It's nothing that is taking more than 5 seconds at most, and the server connection time-out is set to 120 seconds.

I can guarantee you nobody is waiting 120 seconds for this error to pop up.

I did do a forced restart of LSWS and that appears to have cleared up the 408's however I am a bit curious about the one page load where the php script was attempted to be downloaded instead of processed - even if very rare this is dangerous especially with config.php, configuration.php, and other such script configuration files.

I would also like to add that when the "download 408tester.php" popped up - it was more than 30 minutes after doing the LSWS restart.
Reply With Quote
  #13  
Old 08-21-2009, 01:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
I can login take a look at the log. is it the same server as last one?
Does the 408tester.php issue can be reliably reproduced, 30 minutes after LSWS restart?
Reply With Quote
  #14  
Old 08-21-2009, 02:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Quote:
Originally Posted by MikeDVB View Post
It's happening on page loads that are instant (or near instant).

It's nothing that is taking more than 5 seconds at most, and the server connection time-out is set to 120 seconds.
Review the code, the only condition to return 408 timeout response is when there is no socket I/O activity (bytes in/out) for a connection in more than "Connection timeout (Seconds)". So, I have to experience it myself to believe it.

For the download popup, it is likely because a lshttpd crash, it wont send back the script content. So, it is a different issue to the 408 timeout.
Reply With Quote
  #15  
Old 08-21-2009, 07:16 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
Review the code, the only condition to return 408 timeout response is when there is no socket I/O activity (bytes in/out) for a connection in more than "Connection timeout (Seconds)". So, I have to experience it myself to believe it.
It's happening on page loads (when navigating to a new page) and it is showing up *instantly* upon clicking the button or entering the URL.

Quote:
For the download popup, it is likely because a lshttpd crash, it wont send back the script content. So, it is a different issue to the 408 timeout.
I hope this doesn't happen often - is this saved in a log (is it something I can grep for)?

Here is the code:
Code:
root@atlantis [/home/transfer/public_html]# cat 408tester.php
<html><head><meta http-equiv="refresh" content="30" /><title>408 Tester</title></head><body>408 Page Tester<br><?php echo date("D dS M,Y h:i a"); ?></body></htm>
Reply With Quote
  #16  
Old 08-21-2009, 08:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can grep for 408.shtml in /usr/local/apache/logs/error_log.
Your code code missing a "l" in tag "</htm>" at the end.
Reply With Quote
  #17  
Old 08-21-2009, 10:22 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
You can grep for 408.shtml in /usr/local/apache/logs/error_log.
Your code code missing a "l" in tag "</htm>" at the end.
Actually it's intact on the server I simply didn't select the whole thing when I copied/pasted and then I added the ">" not noticing that it was missing an L as well.

Code:
-rw-r--r-- 1 transfer transfer   162 Aug 21 15:52 408tester.php
root@atlantis [/home/transfer/public_html]# cat 408tester.php
<html><head><meta http-equiv="refresh" content="30" /><title>408 Tester</title></head><body>408 Page Tester<br><?php echo date("D dS M,Y h:i a"); ?></body></html>root@atlantis [/home/transfer/public_html]#
As you can see from the above the file was last modified well before my post and you can see in the screen-shot the reason that I missed the l> was that the l> was put on the next line before the bash command line.

Trust me, the issues I am having are not due to my code

The 408 issue has disappeared since I did a forced restart of LSWS but I am still getting the occasional request to download the .php file instead of the server processing it (and yes, I'm getting the contents of the PHP file).
Reply With Quote
  #18  
Old 08-21-2009, 10:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Quote:
I am still getting the occasional request to download the .php file instead of the server processing it (and yes, I'm getting the contents of the PHP file).
Is it random? Usually it will be cached by browser.
Please try a command line tool and dump the response header as well. I usually use "lynx -mime_header <url>".
Reply With Quote
  #19  
Old 08-21-2009, 10:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Sometimes, the browser will cache a page having problem, make sure to clear browser cache.
If need, please submit a support ticket with temp login, we will take a look.
Reply With Quote
  #20  
Old 08-21-2009, 10:50 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I'm trying to recreate the issue in some form of reliable way so that I can submit it in a ticket and you guys can replicate/fix it if necessary
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 09:02 PM.



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