]> arthur.barton.de Git - netdata.git/commitdiff
allow multi-threaded web server to cleanup faster
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 30 May 2016 09:44:06 +0000 (12:44 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 30 May 2016 09:44:06 +0000 (12:44 +0300)
src/web_server.c

index a0e2c423f88fab78cdc5aa690ae1071a095585ba..f4e0f498dc34d42f70f7eda408de7731e16b2f81 100644 (file)
@@ -203,7 +203,7 @@ int create_listen_socket(void) {
 // 3. spawns a new pthread to serve the client (this is optimal for keep-alive clients)
 // 4. cleans up old web_clients that their pthreads have been exited
 
-#define CLEANUP_EVERY_EVENTS 1000
+#define CLEANUP_EVERY_EVENTS 100
 
 void *socket_listen_main_multi_threaded(void *ptr) {
        (void)ptr;