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

Fix icecast for changes in thread module regarding stacksize. For icecast,

the default stacksize is unchanged (8k) until further testing on Solaris
to determine if a larger value is needed.

svn path=/trunk/icecast/; revision=2221
This commit is contained in:
Jack Moffitt 2001-10-20 22:48:29 +00:00
parent cdf8edb30c
commit 42e869cd45
3 changed files with 6 additions and 4 deletions

View File

@ -216,7 +216,7 @@ static void _build_pool(void)
for (i = 0; i < config->threadpool_size; i++) {
snprintf(buff, 64, "Connection Thread #%d", i);
tid = thread_create(buff, _handle_connection, NULL, THREAD_ATTACHED);
tid = thread_create(buff, _handle_connection, NULL, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED);
_push_thread(&_conhands, tid);
}
}
@ -364,7 +364,7 @@ static void *_handle_connection(void *arg)
sock_set_blocking(con->sock, SOCK_NONBLOCK);
thread_create("Source Thread", source_main, (void *)source, THREAD_DETACHED);
thread_create("Source Thread", source_main, (void *)source, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED);
continue;
} else if (parser->req_type == httpp_req_stats) {
@ -385,7 +385,7 @@ static void *_handle_connection(void *arg)
stats->parser = parser;
stats->con = con;
thread_create("Stats Connection", stats_connection, (void *)stats, THREAD_DETACHED);
thread_create("Stats Connection", stats_connection, (void *)stats, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED);
continue;
} else if (parser->req_type == httpp_req_play || parser->req_type == httpp_req_get) {

View File

@ -6,6 +6,8 @@
#define ICE_RUNNING 1
#define ICE_HALTING 2
#define ICE_DEFAULT_STACKSIZE 8192
typedef struct ice_global_tag
{
int serversock;

View File

@ -74,7 +74,7 @@ void stats_initialize()
/* fire off the stats thread */
_stats_running = 1;
_stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, THREAD_ATTACHED);
_stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED);
}
void stats_shutdown()