You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/06/17 17:24:34 UTC
DO NOT REPLY [Bug 29644] New: -
mod_proxy keeps downloading even after the client disconnects
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29644>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29644
mod_proxy keeps downloading even after the client disconnects
Summary: mod_proxy keeps downloading even after the client
disconnects
Product: Apache httpd-2.0
Version: 2.0.49
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: mod_proxy
AssignedTo: bugs@httpd.apache.org
ReportedBy: knu@iDaemons.org
CC: knu@iDaemons.org
mod_proxy keeps downloading from a target server even after the client
disconnects. I can observe this with Apache 2.0.49 + mod_proxy (loaded as a
dynamic module) both on FreeBSD 4.9-STABLE and on Debian GNU/Linux
testing/unstable as of 2004-06-17.
This is critical when the download is an endless audio/videa stream because it
never ends.
How to repeat:
1. Set up Apache2 + mod_proxy as a forward proxy server:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from .localdomain.example.org
</Proxy>
</IfModule>
2. Start downloading a big file using the proxy server and interrupt the download:
$ env http_proxy=http://dragon:80/ wget
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.gz
--23:23:15-- http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.gz
=> `linux-2.6.7.tar.gz.2'
Resolving dragon... 192.168.1.96
Connecting to dragon[192.168.1.96]:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 44,006,970 [application/x-gzip]
0% [ ] 300,028
426.41K/s
^C
$
3. See a zombie connection between apache and the target server still going on:
$ netstat | fgrep kernel.org
tcp 0 0 dragon.local.idaem:1078 zeus-pub.kernel.org:www ESTABLISHED
$
(The above log was taken on a Debian host)
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org