[xiph-commits] r9450 - icecast/branches/kh/icecast/src
karl at motherfish-iii.xiph.org
karl at motherfish-iii.xiph.org
Tue Jun 14 06:20:56 PDT 2005
Author: karl
Date: 2005-06-14 06:20:52 -0700 (Tue, 14 Jun 2005)
New Revision: 9450
Modified:
icecast/branches/kh/icecast/src/yp.c
Log:
allow for changes to touch frequency on touch request as well as add. send
useragent as icecast version
Modified: icecast/branches/kh/icecast/src/yp.c
===================================================================
--- icecast/branches/kh/icecast/src/yp.c 2005-06-14 12:08:06 UTC (rev 9449)
+++ icecast/branches/kh/icecast/src/yp.c 2005-06-14 13:20:52 UTC (rev 9450)
@@ -128,16 +128,16 @@
if (yp->sid)
sscanf (ptr, "SID: %[^\r\n]", yp->sid);
}
- if (strncmp (ptr, "TouchFreq: ", 11) == 0)
- {
- unsigned secs;
- sscanf (ptr, "TouchFreq: %u", &secs);
- if (secs < 30)
- secs = 30;
- DEBUG1 ("server touch interval is %u", secs);
- yp->touch_interval = secs;
- }
}
+ if (strncmp (ptr, "TouchFreq: ", 11) == 0)
+ {
+ unsigned secs;
+ sscanf (ptr, "TouchFreq: %u", &secs);
+ if (secs < 30)
+ secs = 30;
+ DEBUG1 ("server touch interval is %u", secs);
+ yp->touch_interval = secs;
+ }
return (int)bytes;
}
@@ -240,6 +240,7 @@
}
if (server->touch_interval < 30)
server->touch_interval = 30;
+ curl_easy_setopt (server->curl, CURLOPT_USERAGENT, ICECAST_VERSION_STRING);
curl_easy_setopt (server->curl, CURLOPT_URL, server->url);
curl_easy_setopt (server->curl, CURLOPT_HEADERFUNCTION, handle_returned_header);
curl_easy_setopt (server->curl, CURLOPT_WRITEFUNCTION, handle_returned_data);
More information about the commits
mailing list