Commit 813d54be authored by Karl Heyes's avatar Karl Heyes

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
parent 0b1b990c
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment