|
|

08-21-2009, 01:25 PM
|
|
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.
|

08-21-2009, 01:42 PM
|
|
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.
|

08-21-2009, 01:54 PM
|
|
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?
|

08-21-2009, 02:15 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,603
|
|
Quote:
Originally Posted by MikeDVB
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.
|

08-21-2009, 07:16 PM
|
|
Senior Member
|
|
Join Date: Jul 2009
Posts: 218
|
|
Quote:
Originally Posted by mistwang
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>
|

08-21-2009, 08:21 PM
|
|
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.
|

08-21-2009, 10:22 PM
|
|
Senior Member
|
|
Join Date: Jul 2009
Posts: 218
|
|
Quote:
Originally Posted by mistwang
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).
|

08-21-2009, 10:30 PM
|
|
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>".
|

08-21-2009, 10:44 PM
|
|
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.
|

08-21-2009, 10:50 PM
|
|
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 
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:02 PM.
|
|