[icecast-dev] Missing headers in Icecast2
Karl Heyes
karl at xiph.org
Fri Dec 5 18:21:29 PST 2003
On Sat, 2003-12-06 at 01:43, Macsym wrote:
> For Windows (Internet Explorer or AOL) some headers sent by Icecast2 are
> missing. These headers are sent by Icecast1 but NOT Icecast2 (it is the
> reason why it always works with Icecast1). These necessary headers are:
> -Cache-Control: no-cache
possibly
> -Pragma: no-cache
Isn't this from the client.
> -Connection: keep-alive
http 1.0 and http 1.1 differ on this. Sending "Connection: close" should
be ok though. keep-alive isn't going to do anything with these types of
connections.
> -Content-Length: 54000000
well you don't know the length.
> Now that we identified the exact problem, we would like to force Icecast2 to
> send these headers to the client because it would avoid passing through the
> PHP script (which is less reliable, slower the connection and uses more
> CPU). It is why I am contacting the dev-list today.
<p>> Can anybody advise us the best solution to force Icecast2 to send these
> headers to the browser? Should we build a patch or simply change some source
> codes and compile the modified source?
add a couple of lines to verify it
in format_mp3.c at the end of function format_mp3_send_headers
Add something like
ock_write(client->con->sock, "Cache-Control: no-cache\r\n");
and whatever else.
karl.
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Icecast-dev
mailing list