rfminelli / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
GNU General Public License v2.0
0 stars 0 forks source link

HTTP/0.9 shoutcast streaming not handled correctly #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to open URL http://174.123.20.140/;stream.nsv?1290696357606.mp3
2. wget will not start transferring data, while on squid everything is ok

Corresponding lines added to config, and doesn't help
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]                         

upgrade_http0.9 deny shoutcast   

Original issue reported on code.google.com by nuclear...@gmail.com on 25 Nov 2010 at 3:35

GoogleCodeExporter commented 8 years ago
Here is answer i catch over telnet

usa1 ~ # telnet 174.123.20.140 80|more
Trying 174.123.20.140...
Connected to 174.123.20.140.
Escape character is '^]'.
GET /;stream.nsv?1290696357606.mp3 HTTP/1.0

ICY 200 OK
icy-notice1:<BR>This stream requires <a 
href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.7<BR>
icy-name:Voice of van
icy-genre:Various
icy-url:http://www.voiceofvan.net
content-type:audio/mpeg
icy-pub:1
icy-br:32

I mean in previous message that shoutcast stream will go thru squid 
immediately, while on lusca request is passed and i get nothing back

Original comment by nuclear...@gmail.com on 25 Nov 2010 at 3:44

GoogleCodeExporter commented 8 years ago
After while i am getting over lusca:

home ~ # telnet 10.0.1.38 8080
Trying 10.0.1.38...
Connected to 10.0.1.38.
Escape character is '^]'.
GET /;stream.nsv?1290696357606.mp3 HTTP/1.0
Host: 174.123.20.140

ICY 200 OK
icy-notice1:<BR>This stream requires <a 
href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.7<BR>
Connection closed by foreign host.

Original comment by nuclear...@gmail.com on 25 Nov 2010 at 3:45