ap_mpm_rewrite_args(process);
}
-#define SIMPLE_MAX_PROC (500000)
-#define SIMPLE_MIN_PROC (1)
-
-#define SIMPLE_MAX_THREADS (500000)
-#define SIMPLE_MIN_THREADS (1)
-
static int
simple_check_config(apr_pool_t * p, apr_pool_t * plog,
apr_pool_t * ptemp, server_rec * s)
if (sc->procmgr.proc_count > SIMPLE_MAX_PROC) {
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s,
- "simple_check_config: SimpleProcCount must be less than %d",
+ "simple_check_config: SimpleProcCount must be at most %d",
SIMPLE_MAX_PROC);
return !OK;
}
if (sc->procmgr.proc_count < SIMPLE_MIN_PROC) {
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s,
- "simple_check_config: SimpleProcCount must be more than %d",
+ "simple_check_config: SimpleProcCount must be at least %d",
SIMPLE_MIN_PROC);
return !OK;
}
if (sc->procmgr.thread_count > SIMPLE_MAX_THREADS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s,
- "simple_check_config: SimpleThreadCount must be less than %d",
+ "simple_check_config: SimpleThreadCount must be at most %d",
SIMPLE_MAX_THREADS);
return !OK;
}
if (sc->procmgr.thread_count < SIMPLE_MIN_THREADS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s,
- "simple_check_config: SimpleThreadCount must be more than %d",
+ "simple_check_config: SimpleThreadCount must be at least %d",
SIMPLE_MIN_THREADS);
return !OK;
}
apr_pool_tag(sc->pool, "simple-mpm-core");
sc->mpm_state = AP_MPMQ_STARTING;
+ sc->procmgr.proc_count = SIMPLE_DEF_PROC;
+ sc->procmgr.thread_count = SIMPLE_DEF_THREADS;
sc->procmgr.max_requests_per_child = DEFAULT_MAX_REQUESTS_PER_CHILD;
sc->children = apr_hash_make(sc->pool);
int max_requests_per_child;
} simple_proc_mgr_t;
+#define SIMPLE_MAX_PROC (500000)
+#define SIMPLE_DEF_PROC (5)
+#define SIMPLE_MIN_PROC (1)
+#define SIMPLE_MAX_THREADS (500000)
+#define SIMPLE_DEF_THREADS (5)
+#define SIMPLE_MIN_THREADS (1)
+
typedef void (*simple_timer_cb) (simple_core_t * sc, void *baton);
typedef void (*simple_io_sock_cb) (simple_core_t * sc, apr_socket_t * sock,
int flags, void *baton);