* - inotify not working ?
* - some per-conn info thing for control
* - option for realsockdir
- * - option for filepoll
* - option for no inotify
* - manpage: document control master stuff
*
static int max_queue_per_conn=200;
static int target_max_feedfile_size=100000;
static int period_seconds=60;
+static int filepoll_seconds=5;
static int connection_setup_timeout=200;
static int inndcomm_flush_timeout=100;
static int sm_period_counter;
/* initialisation to 0 is good */
-static int until_connect, until_backlog_nextscan;
+static int until_connect, until_backlog_nextscan, until_backup_filepoll;
static double accept_proportion;
static int nocheck, nocheck_reported;
{0,"feedfile-flush-size","BYTES", &target_max_feedfile_size, op_integer },
{0,"period-interval", "TIME", &period_seconds, op_seconds },
-{0,"connection-timeout", "TIME", &connection_setup_timeout, op_seconds },
-{0,"stuck-flush-timeout","TIME", &inndcomm_flush_timeout, op_seconds },
+{0,"connection-timeout", "TIME", &connection_setup_timeout, op_seconds },
+{0,"stuck-flush-timeout", "TIME", &inndcomm_flush_timeout, op_seconds },
+{0,"feedfile-poll", "TIME", &filepoll_seconds, op_seconds },
{0,"no-check-proportion", "PERCENT", &nocheck_thresh, op_double },
{0,"no-check-response-time","ARTICLES", &nocheck_decay, op_double },
if (!filemon_method_init()) {
warn("filemon: no file monitoring available, polling");
- every(5,0,filepoll);
+ every(filepoll_seconds,0,filepoll);
}
every(period_seconds,1,period);