[xiph-commits] r6862 - icecast/trunk/icecast/src
karl at dactyl.lonelymoon.com
karl
Fri Jun 25 13:57:28 PDT 2004
Author: karl
Date: Fri Jun 25 13:57:28 2004
New Revision: 6862
Modified:
icecast/trunk/icecast/src/yp.c
Log:
wait 5 mins on failed YP request, also log a default
message if no error message is sent back
Modified: icecast/trunk/icecast/src/yp.c
===================================================================
--- icecast/trunk/icecast/src/yp.c 2004-06-25 18:14:43 UTC (rev 6861)
+++ icecast/trunk/icecast/src/yp.c 2004-06-25 18:25:10 UTC (rev 6862)
@@ -287,14 +287,16 @@
if (curlcode)
{
yp->process = do_yp_add;
- yp->next_update += 60;
+ yp->next_update += 300;
ERROR2 ("connection to %s failed with \"%s\"", server->url, server->curl_error);
return -1;
}
if (yp->cmd_ok == 0)
{
+ if (yp->error_msg == NULL)
+ yp->error_msg = strdup ("no response from server");
yp->process = do_yp_add;
- yp->next_update += 60;
+ yp->next_update += 300;
ERROR3 ("YP %s on %s failed: %s", cmd, server->url, yp->error_msg);
return -1;
}
More information about the commits
mailing list