X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fstatserv.c;h=d340a179a99f23a856baebf61d110ee7e4ce271b;hp=4def68a6beaa85b9aa846802cf225fbb46ee0f4e;hb=f0d23836907782b75c45f9572ff0df25561b2cf8;hpb=e31c087cd8187e3568f4a7af4203672cc5f67118 diff --git a/src/statserv.c b/src/statserv.c index 4def68a..d340a17 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -117,7 +117,8 @@ statserv_options_block control_block = { "", /* PID fname */ 0, /* background daemon */ "", /* SSL certificate filename */ - "" /* XML config filename */ + "", /* XML config filename */ + 1 /* keepalive */ }; static int max_sessions = 0; @@ -1259,7 +1260,7 @@ int check_options(int argc, char **argv) get_logbits(1); - while ((ret = options("1a:iszSTl:v:u:c:w:t:k:d:A:p:DC:f:m:r:", + while ((ret = options("1a:iszSTl:v:u:c:w:t:k:Kd:A:p:DC:f:m:r:", argv, argc, &arg)) != -2) { switch (ret) @@ -1337,6 +1338,9 @@ int check_options(int argc, char **argv) } control_block.maxrecordsize = r * 1024; break; + case 'K': + control_block.keepalive = 0; + break; case 'i': control_block.inetd = 1; break;