Displaying 10 results from an estimated 10 matches for "avl_tree_rlock".
2004 Aug 06
2
fallback source give up and returns to original source
On Sat, 2004-01-17 at 19:31, iceuse@kezako.net wrote:
> Thanks,
> Karl, do you plan to integrate this in your icecast-kh release?
The idea is to put the the changes I've done into CVS. That way you get
the best of both worlds, there's nothing conflicting AFAIK.
karl.
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage:
2004 Aug 06
0
fallback source give up and returns to original source
...'ll send you the 4 modified files
(perhaps you want to integrate them in your release, but also I'm not sure about locking or not the main source
before moving the clients :
if(source->fallback_override && source->fallback_mount) {
/* get fallback source */
avl_tree_rlock (global.source_tree);
source_t *fallback_source = source_find_mount (source->fallback_mount);
avl_tree_unlock (global.source_tree);
if (fallback_source) {
INFO2 ("passing %d listeners to %s", fallback_source->mount,source->listeners );...
2006 Jun 16
0
Crash in Icecast-2.3.1 (in source_recheck_mounts)
Hi Karl,
I've not been able to duplicate it (yet). Assuming that brendan's
snapshot is a daily build from icecast/trunk I've compared icecast_2_3_1
and trunk code for src/source.c. The most likely change that fixes the
problem is the introduction of avl_tree_rlock (and matching unlock) just
below "Applying mount information for". Another lock that might be
related is the avl_tree_wlock that is introduced in source_clear_source.
Diff command used:
svn diff http://svn.xiph.org/icecast/tags/icecast_2_3_1/src/source.c
http://svn.xiph.org/icecast/tr...
2004 Aug 06
2
icecast 2 compatibility with older clients
..._t *var;
avl_node *node;
int bytes;
+ char *client_is_icy;
+ /* if the client uses icy headers, we'll respond in kind */
+ client_is_icy = httpp_getvar(client->parser, "icy-metadata");
+
/* iterate through source http headers and send to client */
avl_tree_rlock(source->parser->vars);
node = avl_get_first(source->parser->vars);
@@ -109,8 +114,12 @@ void format_send_general_headers(format_
var = (http_var_t *)node->key;
if (strcasecmp(var->name, "ice-password") &&
(!strncasecmp(&qu...
2004 Aug 06
0
[RFC] RTP support
..._done, rtp_amount);
+ write(rtp_socket, rtp_buf, RTP_HDR_SIZE+RTP_MPEG_HDR_SIZE+rtp_amount);
+ *(unsigned short*)(rtp_buf+2)=
+ htons(ntohs(*(unsigned short*)(rtp_buf+2))+1);
+ }
+ }
+
/* acquire read lock on client_tree */
avl_tree_rlock(source->client_tree);
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject i...
2004 Aug 06
2
improved error.log output --diff
...INFO1("Source (%s) attempted to login with invalid or missing password", uri);
+ INFO1("Source (%s) attempted to login with invalid or missing password, %s", uri, client->con->ip);
client_send_401(client);
return;
}
@@ -622,7 +622,7 @@
avl_tree_rlock(global.source_tree);
if (source_find_mount(uri) != NULL) {
avl_tree_unlock(global.source_tree);
- INFO1("Source tried to log in as %s, but mountpoint is already used", uri);
+ INFO1("Source tried to log in as %s, but mountpoint is already used, %s", u...
2004 Aug 06
4
No Duplicate Users - Patch
...=============================================
--- src/auth.c (revision 6619)
+++ src/auth.c (working copy)
@@ -34,6 +34,30 @@
#define CATMODULE "auth"
<p>+int auth_is_listener_connected(source_t *source, char *username)
+{
+ client_t *client;
+ avl_node *client_node;
+
+ avl_tree_rlock(source->client_tree);
+
+ client_node = avl_get_first(source->client_tree);
+ while(client_node) {
+ client = (client_t *)client_node->key;
+ if (client->username) {
+ if (!strcmp(client->username, username)) {
+ avl_tree_unlock(source-&g...
2004 Aug 06
0
icecast2 on solaris ... (fwd)
...level:
avl.c:1136: parse error before `*'
avl.c: In function `avl_print_tree':
avl.c:1139: `key_printer' undeclared (first use in this function)
avl.c:1142: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1150: parse error before `*'
avl.c: In function `avl_tree_rlock':
avl.c:1152: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1155: parse error before `*'
avl.c: In function `avl_tree_wlock':
avl.c:1157: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1160: parse error before `*'
avl.c:...
2004 Aug 06
2
My turn to have issues with compiling libshout
...tax error before '*' token
avl.c: In function `avl_print_tree':
avl.c:1143: `key_printer' undeclared (first use in this function)
avl.c:1146: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1154: syntax error before '*' token
avl.c: In function `avl_tree_rlock':
avl.c:1156: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1159: syntax error before '*' token
avl.c: In function `avl_tree_wlock':
avl.c:1161: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1164: syntax error before ...
2004 Aug 06
1
Compile errors
...level:
avl.c:1136: parse error before `*'
avl.c: In function `avl_print_tree':
avl.c:1139: `key_printer' undeclared (first use in this function)
avl.c:1142: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1150: parse error before `*'
avl.c: In function `avl_tree_rlock':
avl.c:1152: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1155: parse error before `*'
avl.c: In function `avl_tree_wlock':
avl.c:1157: `tree' undeclared (first use in this function)
avl.c: At top level:
avl.c:1160: parse error before `*'
avl.c:...