[Icecast-dev] [PATCH 23/31] connection: duration should be bigger

Niv Sardi nsardi at smartjog.com
Fri Jul 30 07:54:45 PDT 2010


Signed-off-by: Niv Sardi <nsardi at smartjog.com>
---
 src/connection.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 9269ad6..802a8ad 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -817,7 +817,7 @@ void connection_accept_loop (void)
     connection_queue_t *node;
     connection_t *con;
     ice_config_t *config;
-    int duration = 300;
+    int duration = 3000;
     int timeout = 0;
 
     config = config_get_config ();
@@ -830,7 +830,7 @@ void connection_accept_loop (void)
         con = _accept_connection (duration);
 
         if (!con) {
-            duration = 300; /* use longer timeouts when nothing waiting */
+            duration = 30000; /* use longer timeouts when nothing waiting */
             continue;
         }
 
@@ -840,6 +840,7 @@ void connection_accept_loop (void)
          * connection loop will do all the dirty work */
         node =_connection_node_new (con);
         _add_connection (node);
+        duration = 3000;
     }
 
     /* Give all the other threads notification to shut down */
-- 
1.7.1



More information about the Icecast-dev mailing list