[xiph-commits] r10019 - icecast/trunk/icecast/src
karl at svn.xiph.org
karl at svn.xiph.org
Fri Sep 16 09:53:35 PDT 2005
Author: karl
Date: 2005-09-16 09:53:33 -0700 (Fri, 16 Sep 2005)
New Revision: 10019
Modified:
icecast/trunk/icecast/src/auth.c
Log:
fix for race, client needs setup before adding to pending tree
Modified: icecast/trunk/icecast/src/auth.c
===================================================================
--- icecast/trunk/icecast/src/auth.c 2005-09-15 22:33:13 UTC (rev 10018)
+++ icecast/trunk/icecast/src/auth.c 2005-09-16 16:53:33 UTC (rev 10019)
@@ -295,17 +295,18 @@
return -1;
} while (1);
+
+ client->write_to_client = format_generic_write_to_client;
+ client->check_buffer = format_check_http_buffer;
+ client->refbuf->len = PER_CLIENT_REFBUF_SIZE;
+ memset (client->refbuf->data, 0, PER_CLIENT_REFBUF_SIZE);
+
/* lets add the client to the active list */
avl_tree_wlock (source->pending_tree);
avl_insert (source->pending_tree, client);
avl_tree_unlock (source->pending_tree);
stats_event_inc (NULL, "listener_connections");
- client->write_to_client = format_generic_write_to_client;
- client->check_buffer = format_check_http_buffer;
- client->refbuf->len = PER_CLIENT_REFBUF_SIZE;
- memset (client->refbuf->data, 0, PER_CLIENT_REFBUF_SIZE);
-
if (source->running == 0 && source->on_demand)
{
/* enable on-demand relay to start, wake up the slave thread */
More information about the commits
mailing list