1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

wait 5 mins on failed YP request, also log a default

message if no error message is sent back

svn path=/icecast/trunk/icecast/; revision=6862
This commit is contained in:
Karl Heyes 2004-06-25 18:25:10 +00:00
parent 0b1b990cf8
commit 813d54bee1

View File

@ -287,14 +287,16 @@ static int send_to_yp (const char *cmd, ypdata_t *yp, char *post)
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;
}