From: Felix Fietkau Date: Sun, 13 Jan 2013 10:13:59 +0000 (+0100) Subject: add an option for configuring http keepalive X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=48e1a4df5a74f1c4c0e19d94977d4d5efc76a2ff;ds=sidebyside add an option for configuring http keepalive --- diff --git a/main.c b/main.c index 73a925c..11d2e54 100644 --- a/main.c +++ b/main.c @@ -145,6 +145,7 @@ static int usage(const char *name) " -i .ext=path Use interpreter at path for files with the given extension\n" " -t seconds CGI, Lua and UBUS script timeout in seconds, default is 60\n" " -T seconds Network timeout in seconds, default is 30\n" + " -k seconds HTTP keepalive timeout\n" " -d string URL decode given string\n" " -r string Specify basic auth realm\n" " -m string MD5 crypt given string\n" @@ -200,7 +201,7 @@ int main(int argc, char **argv) init_defaults(); signal(SIGPIPE, SIG_IGN); - while ((ch = getopt(argc, argv, "fSDRC:K:E:I:p:s:h:c:l:L:d:r:m:n:x:i:t:T:A:u:U:")) != -1) { + while ((ch = getopt(argc, argv, "fSDRC:K:E:I:p:s:h:c:l:L:d:r:m:n:x:i:t:k:T:A:u:U:")) != -1) { bool tls = false; switch(ch) { @@ -280,6 +281,10 @@ int main(int argc, char **argv) conf.network_timeout = atoi(optarg); break; + case 'k': + conf.http_keepalive = atoi(optarg); + break; + case 'A': conf.tcp_keepalive = atoi(optarg); break;