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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Exceeding the maximum dynamic response body size?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2009, 01:05 PM
David J Prokopetz David J Prokopetz is offline
New Member
 
Join Date: May 2009
Posts: 3
Default Exceeding the maximum dynamic response body size?

Heya, folks.

I have a bit of a conundrum on my hands. I have a PHP script that legitimately produces more than 1 GB of output. However, LiteSpeed doesn't appear to allow the maximum dynamic response body size to be increased to any value larger than 1 GB. Is there any way to get around this?

(I'm afraid that splitting the output into several files and/or using a header redirect isn't feasible for legacy reasons - I need this script to genuinely be able to spit out more than 1 GB of data. I was able to do this under Apache, but under LiteSpeed I'm hitting a wall.)

Thanks,

- Dave.
Reply With Quote
  #2  
Old 05-27-2009, 02:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If what the PHP script do is to stream some media file after authentication, you can use our internal redirect, the target URL is invisible to end-user.
http://www.litespeedtech.com/support...ernal_redirect

I think we can up the limit to 2GB in our next release if really need.
Reply With Quote
  #3  
Old 05-27-2009, 02:29 PM
David J Prokopetz David J Prokopetz is offline
New Member
 
Join Date: May 2009
Posts: 3
Interesting. I'm not sure that's going to work, though. The file that's generated lands outside the document root, and - again, for irritating legacy reasons - this can't readily be changed. I'll see if I can work something out; while we're on the subject, what sort of timeframe might we be looking at to see an update that increases the cap?

Last edited by David J Prokopetz; 05-27-2009 at 02:39 PM..
Reply With Quote
  #4  
Old 05-27-2009, 02:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Just create a static context or use "Alias" directive in Apache httpd.conf to make the file accessible.
we can put the change in 4.0.4 release. the next build could have the change.
Reply With Quote
  #5  
Old 05-27-2009, 04:05 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Don't forget to update the tooltip too.
Reply With Quote
  #6  
Old 05-27-2009, 08:01 PM
David J Prokopetz David J Prokopetz is offline
New Member
 
Join Date: May 2009
Posts: 3
Firstly, thanks for the tips - I was able to get it working with a combination of an internal redirect to an alias within the document root, and a mod_rewrite rule denying access to any request that didn't originate from an internal redirect.

One further question, though: are downloads via internal redirects resumable? My testing returned mixed results, but I may be doing it wrong.
Reply With Quote
  #7  
Old 05-27-2009, 08:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Glad you make it work, it is 100 times more efficient.
I think it should work with range request.
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 12:22 AM.



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