diff --git a/src/connection.c b/src/connection.c index 24addf37..8cb19672 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED); + tid = thread_create(buff, _handle_connection, NULL, 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, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED); + thread_create("Source Thread", source_main, (void *)source, 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, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED); + thread_create("Stats Connection", stats_connection, (void *)stats, THREAD_DETACHED); continue; } else if (parser->req_type == httpp_req_play || parser->req_type == httpp_req_get) { diff --git a/src/global.h b/src/global.h index 05647421..e15ca8c4 100644 --- a/src/global.h +++ b/src/global.h @@ -6,8 +6,6 @@ #define ICE_RUNNING 1 #define ICE_HALTING 2 -#define ICE_DEFAULT_STACKSIZE 8192 - typedef struct ice_global_tag { int serversock; diff --git a/src/stats.c b/src/stats.c index d70a21f5..5b33c33e 100644 --- a/src/stats.c +++ b/src/stats.c @@ -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, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED); + _stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, THREAD_ATTACHED); } void stats_shutdown()