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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Max Dynamic Response Header Size (bytes) ???

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2005, 12:22 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default Max Dynamic Response Header Size (bytes) ???

I seem to have problems with sites which try to set a larger cookie.
Would a dynamic response header which is too large be logged somewhere?
The sites show only some part of the page while they show the whole page if I just remove the setcookie-call.
Could it be that I just hit this limit?
Would it be possible to allow larger numbers than 8K there so one could experiment with it?
Reply With Quote
  #2  
Old 07-13-2005, 10:25 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If the header is too large, you will get "WARN" log in your error.log, and send back 500 status code, so I believe the limit has not been reached.

To debug this problem, you can try turning on the debug log and dumping the whole response header + body with tools like "lynx -mime_header ...".

If you can provide a simple testing code, I can help debuging this problem.

It is not possible to allow response header larger than 8K.
Reply With Quote
  #3  
Old 07-13-2005, 10:44 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
I get only a "premature end of response headers" in the error-log nothing more.
As I get only half of the page through lsws but running php-cgi (the same which is running the fcgi-backend with the same config) on the command-line with the same script I get the full page back, I can only guess that its related to lsws.
I can try to manually generate such a long setcookie-call. Will come back to you tomorrow if I succeed.
Reply With Quote
  #4  
Old 07-13-2005, 11:12 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
That error message means a FCGI protocol error, not the limit has been reached. It happens when PHP process crashed before sending the whole response header back to lsws, but you should not get half of the page if that is the case. Debug logging should be helpful.

You can just hard code the cookie along with the html page in a php script.
Reply With Quote
  #5  
Old 07-14-2005, 07:28 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Hmm, seems like PHP just doesn't like to send that large cookies (~8-10K).
Yes I know, I shouldn't send them but the app was failing on some laaaarge data this way.

So, I think this problem is not related to litespeed, I could reproduce it on apache in the same way (and got absolutely no message there in the logs either).
Reply With Quote
  #6  
Old 07-14-2005, 07:32 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
oh, on apache it seems to be no problem from php/apache-side but from the browser which doesn't show the page then ... probably doesn't like large headers either .
Reply With Quote
  #7  
Old 07-14-2005, 08:32 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
;-), see, not only lsws don't like cookies that big, browser won't eat it either.

I think large cookies should be avoided by all means, it is not a good idea to store too many data in cookies. :-)
Reply With Quote
  #8  
Old 07-14-2005, 08:34 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
yep that changed in the new version of the software I use but until I can upgrade I have to live with the deficiencies in the old version .
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Client never gets server response Renuplex Ruby/Rails 9 04-23-2007 06:55 AM
Some configuration help and a few questions alex General 10 12-12-2006 08:58 AM
Premature end of response header, and 503 service errors (maybe related, maybe not) fantasydreaming Bug Reports 13 12-11-2006 04:21 PM
emalloc / erealloc again with APC philwo PHP 13 10-03-2006 10:05 AM
Premature end of response header alex Bug Reports 10 06-11-2006 07:48 AM


All times are GMT -7. The time now is 10:12 AM.



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