diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 11:13:59 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 11:13:59 +0100 |
commit | 48e1a4df5a74f1c4c0e19d94977d4d5efc76a2ff (patch) | |
tree | 722dad5d4318ab83a1d89455bd69067d6b083004 /main.c | |
parent | bb64de8897d9de5c964d021d05999bd4ca5cb36a (diff) |
add an option for configuring http keepalive
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |