Project

General

Profile

Bug #1113

mod_proxy_core lost capability of streaming and eats a lot of memory since rev 1641

Added by qhy over 12 years ago. Updated over 12 years ago.

Status:
Fixed
Priority:
High
Assignee:
-
Category:
mod_proxy_core
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

Problems are introduced by sess->proxy_con

Config file:


server.modules = ( "mod_access", "mod_status","mod_proxy_core", "mod_proxy_backend_http")
proxy-core.balancer = "round-robin" 
proxy-core.protocol = "http" 
proxy-core.max-pool-size = 1024
proxy-core.max-keep-alive-requests = 100
proxy-core.backends = ( "10.x.x.x:80")

1167372663067.flv is about 63M

test cmd


curl -o /dev/null -v http://video.joke.xxx.com/video/98/35/1167372663067.flv
* About to connect() to video.joke.xxx.com port 80 (#0)
*   Trying 127.0.0.1... connected
* Connected to video.joke.xxx.com (127.0.0.1) port 80 (#0)
> GET /video/98/35/1167372663067.flv HTTP/1.1
> User-Agent: curl/7.16.1 (i386-portbld-freebsd6.2) libcurl/7.16.1 OpenSSL/0.9.7e zlib/1.2.3
> Host: video.joke.xxx.com
> Accept: */*
> 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0< HTTP/1.1 200 OK
< Content-Type: video/x-flv
< ETag: "-1212398372" 
< Accept-Ranges: bytes
< Last-Modified: Fri, 29 Dec 2006 06:11:20 GMT
< Date: Wed, 11 Apr 2007 14:12:41 GMT
< Server: lighttpd
< Content-Length: 66298096
< Connection: close
{ [data not shown]
100 63.2M  100 63.2M    0     0   9.8M      0  0:00:06  0:00:06 --:--:-- 18.4M* Closing connection #0

lighttpd rev 1640 after curl test:


ps axv | grep lighttpd
67706 S      0:15.32   0 127      0  7148  4908     -  152  0.0  0.1 /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf

lighttpd rev 1717 after curl test:(eats about 380M memory)


ps axv | grep lighttpd
72441 S      0:05.45   0  29      0 396812 394956     -  156  0.0 10.8 /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf
#1

Updated by jwmcglynn over 12 years ago

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

Duplicate of * #1069 *, sorry.

#2

Updated by qhy over 12 years ago

Replying to jwmcglynn:

Duplicate of * #1069 *, sorry.

agree.
your patch works

Also available in: Atom