Change monitor server watchdog timeout to 1s

This commit is contained in:
Yann Weber 2019-08-11 16:47:53 +02:00
commit 2d48fc0939
2 changed files with 2 additions and 3 deletions

View file

@ -42,8 +42,8 @@ pid_t pyfcgi_spawn_monitor()
struct timespec wd_delay;
int err;
wd_delay.tv_sec = 0;
wd_delay.tv_nsec = 250000000; //0.25s
wd_delay.tv_sec = 1;
wd_delay.tv_nsec = 0;
act.sa_handler = pyfcgi_monitor_sighandler;
sigemptyset(&act.sa_mask);

View file

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