@cryptotaxi247 / netdata-1 / commits / b6d2dc322

allow multi-threaded web server to cleanup faster

Costa Tsaousis (ktsaou) committed May 30, 2016 at 12:44 UTC b6d2dc322241228825a98037b258d2b10d969738
1 file changed +1 -1
src/web_server.c
+1 -1
@@ -203,7 +203,7 @@ int create_listen_socket(void) {
203 // 3. spawns a new pthread to serve the client (this is optimal for keep-alive clients)
204 // 4. cleans up old web_clients that their pthreads have been exited
205
206 -#define CLEANUP_EVERY_EVENTS 1000
206 +#define CLEANUP_EVERY_EVENTS 100
207
208 void *socket_listen_main_multi_threaded(void *ptr) {
209 (void)ptr;