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

Niv Sardi <[email protected]>
Newsgroups gmane.comp.audio.icecast.devel
Message-ID <[email protected]>
Signed-off-by: Niv Sardi <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.