Browse Source

Change monitor server watchdog timeout to 1s

Yann Weber 4 years ago
parent
commit
2d48fc0939
2 changed files with 2 additions and 3 deletions
  1. 2
    2
      src/monitor.c
  2. 0
    1
      src/pyworker.c

+ 2
- 2
src/monitor.c View File

42
 	struct timespec wd_delay;
42
 	struct timespec wd_delay;
43
 	int err;
43
 	int err;
44
 
44
 
45
-	wd_delay.tv_sec = 0;
46
-	wd_delay.tv_nsec = 250000000; //0.25s
45
+	wd_delay.tv_sec = 1;
46
+	wd_delay.tv_nsec = 0;
47
 
47
 
48
 	act.sa_handler = pyfcgi_monitor_sighandler;
48
 	act.sa_handler = pyfcgi_monitor_sighandler;
49
 	sigemptyset(&act.sa_mask);
49
 	sigemptyset(&act.sa_mask);

+ 0
- 1
src/pyworker.c View File

153
 		}
153
 		}
154
 		pyfcgi_log(LOG_DEBUG, "Worker[%d] request %d END [OK] %lu bytes in %ld.%06lds",
154
 		pyfcgi_log(LOG_DEBUG, "Worker[%d] request %d END [OK] %lu bytes in %ld.%06lds",
155
 			wrk_id, count, libpyfcgi.rep_sz, stop.tv_sec, stop.tv_usec);
155
 			wrk_id, count, libpyfcgi.rep_sz, stop.tv_sec, stop.tv_usec);
156
-
157
 		worker_set_idle();
156
 		worker_set_idle();
158
 	}
157
 	}
159
 	worker_set_busy();
158
 	worker_set_busy();

Loading…
Cancel
Save