[icecast-dev] Missing headers in Icecast2
karl at xiph.org
Sat Dec 6 05:06:33 PST 2003
On Sat, 2003-12-06 at 06:12, Macsym wrote:
> Hi Karl,
> I just checked in Icecast1 source, the line:
> if (client_wants_content_length (con))
> sock_write (con->sock, "Cache-Control: no-cache\r\nPragma:
> no-cache\r\nConnection: close\r\nContent-Length: 54000000\r\n");
> is located in "client.c". Shouldn't I add this line in "client.c" of
> Icecast2 instead of "format_mp3.c" as you advised me? If so, what should I
> add exactly and where in the code (of Icecast2's client.c)?
The function I mentioned is per client, it's specific to the mp3 format.
Use the sock write in there.
BTW the keep-alive attribute is specific to http 1.0, with http 1.1 the
keep-alive is the default and connection close disables it.
Content-length isn't really useful but some clients maybe expecting
something, try it without first. The cache ones can be important.
<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