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,8 +42,8 @@ pid_t pyfcgi_spawn_monitor()
42 42
 	struct timespec wd_delay;
43 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 48
 	act.sa_handler = pyfcgi_monitor_sighandler;
49 49
 	sigemptyset(&act.sa_mask);

+ 0
- 1
src/pyworker.c View File

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

Loading…
Cancel
Save