Project

General

Profile

Bug #663

mod_proxy doesn't stream data ?

Added by Anonymous over 13 years ago. Updated about 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_proxy
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

I didn't check the source code but it seems like mod_proxy is trying to cache the whole page before sending it back to the browser.

This is not a problem for small pages but when you have a multipart jpeg stream that never ends, it explodes memory consuption. Also, when the browser is closed, netstat shows me that lighttpd still tries to get the data from the source host.

I know this is not a standard usage case of lighttpd. Is it possible to stream the data to the browser instead of keeping it until the end of page ? I think it would be better but I'm not an HTTP expert.

Cheers,
zimbatm

-- zimbatm

History

#1

Updated by Anonymous about 13 years ago

I have found that this is a problem for me as well. The cgi script on the target system is writing critical output real-time, but nothing can be seen until the script has finished.

-- jschmier

#2

Updated by Anonymous almost 13 years ago

Replying to jschmier:

I have found that this is a problem for me as well. The cgi script on the target system is writing critical output real-time, but nothing can be seen until the script has finished.

real problem is that if you for any stupid reason serving big files from application server and using mod_proxy to communicate between two of them, in that case it's very easy to exploit dos on lighttpd by connecting once and:
while (1) {
get /largefile.extension
}
in 2 minutes lighttpd will be eating 80% of your server ram...

#3

Updated by jan almost 13 years ago

  • Status changed from New to Assigned

This is known and fixed in the upcoming 1.5.0 release.

#4

Updated by clsung almost 13 years ago

This problem also happpens when I use subversion/mod_proxy/apache to check out large repository ( 931Mb )

#5

Updated by jwmcglynn over 12 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to duplicate

Since this was moved to 1.5 this is practically a copy of #1069, which includes a patch for mod_proxy_core.

Also available in: Atom