| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Icecast
Revision: 14934
Author: karl
Date: 20 May 2008 22:19:47
Changes:handle a couple of possible odd misconfiguration cases with YP. Make sure the
peak_listeners stat is shown when relays are inactive.
| ... | ...@@ -940,6 +940,8 @@ | |
| 940 | 940 | |
| 941 | 941 | DEBUG1("Applying mount information for \"%s\"", source->mount); |
| 942 | 942 | avl_tree_rlock (source->client_tree); |
| 943 | stats_event_args (source->mount, "listener_peak", "%lu", source->peak_listeners); | |
| 944 | ||
| 943 | 945 | if (mountinfo) |
| 944 | 946 | { |
| 945 | 947 | source->max_listeners = mountinfo->max_listeners; |
| ... | ...@@ -246,6 +246,8 @@ | |
| 246 | 246 | destroy_yp_server (server); |
| 247 | 247 | break; |
| 248 | 248 | } |
| 249 | if (server->url_timeout > 10 || server->url_timeout < 1) | |
| 250 | server->url_timeout = 6; | |
| 249 | 251 | if (server->touch_interval < 30) |
| 250 | 252 | server->touch_interval = 30; |
| 251 | 253 | curl_easy_setopt (server->curl, CURLOPT_USERAGENT, server->server_id); |
| ... | ...@@ -386,6 +388,8 @@ | |
| 386 | 388 | free (value); |
| 387 | 389 | |
| 388 | 390 | value = stats_get_value (yp->mount, "bitrate"); |
| 391 | if (value == NULL) | |
| 392 | value = stats_get_value (yp->mount, "ice-bitrate"); | |
| 389 | 393 | add_yp_info (yp, value, YP_BITRATE); |
| 390 | 394 | free (value); |
| 391 | 395 |