@@ -18,6 +18,9 @@ worker_threads = 1
# Disable multi-processes mode for debugging
# worker_processes = 0
+# max_connections = workers * worker_connections
+worker_connections = 1024
+
# http server
http_port = 8080
https_port = 8443
@@ -117,6 +117,12 @@ int parse_confile(const char* confile) {
}
g_http_server.worker_threads = LIMIT(0, worker_threads, 64);
+ // worker_connections
+ str = ini.GetValue("worker_connections");
+ if (str.size() != 0) {
+ g_http_server.worker_connections = atoi(str.c_str());
+ }
// http_port
int port = 0;
const char* szPort = get_arg("p");