1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Add log message for succesful streamlist requests

This commit is contained in:
Marvin Scholz 2016-04-13 10:12:39 +02:00
parent a552c6e667
commit 43658deb37

View File

@ -646,11 +646,13 @@ static int update_from_master(ice_config_t *config)
free(data);
if (sock_read_line(mastersock, buf, sizeof(buf)) == 0 ||
(strncmp (buf, "HTTP/1.0 200", 12) != 0) && (strncmp (buf, "HTTP/1.1 200", 12) != 0))
((strncmp (buf, "HTTP/1.0 200", 12) != 0) && (strncmp (buf, "HTTP/1.1 200", 12) != 0)))
{
sock_close (mastersock);
ICECAST_LOG_WARN("Master rejected streamlist request");
break;
} else {
ICECAST_LOG_INFO("Master accepted streamlist request");
}
while (sock_read_line(mastersock, buf, sizeof(buf)))