Change monitor server watchdog timeout to 1s
This commit is contained in:
parent
c2bcf7691f
commit
2d48fc0939
2 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue