X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fstatserv.c;h=db60db7d7ad1f7f8fb5014d4427150ef97ab8fb8;hp=dacdc39f7965148d407f51dcfdb2886c07e97fa3;hb=c2d4d247b3fe28f7c191fbc3644c8e011e1a4fea;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/statserv.c b/src/statserv.c index dacdc39..db60db7 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -95,7 +95,7 @@ statserv_options_block control_block = { "", /* diagnostic output to stderr */ "tcp:@:9999", /* default listener port */ PROTO_Z3950, /* default application protocol */ - 15, /* idle timeout (minutes) */ + 900, /* idle timeout (seconds) */ 1024*1024, /* maximum PDU size (approx.) to allow */ "default-config", /* configuration name to pass to backend */ "", /* set user id */ @@ -1443,7 +1443,7 @@ int check_options(int argc, char **argv) fprintf(stderr, "%s: Specify positive timeout for -t.\n", me); return(1); } - control_block.idle_timeout = r; + control_block.idle_timeout = strchr(arg, 's') ? r : 60 * r; break; case 'k': if (!arg || !(r = atoi(arg)))