From 73d5688d654ccb692f1136fac9180dc7d4cc177f Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Thu, 1 Nov 2012 19:20:13 +0000 Subject: Maximum number of connexions changed from 4 to 8 Maximum bandwidth usage changed from 100KB/s to 250KB/s --- src/htscoremain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/htscoremain.c b/src/htscoremain.c index 2c5a8a4..21939a9 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -2183,14 +2183,14 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp *opt) { /* Enforce limits to avoid bandwith abuse. The bypass_limits should only be used by administrators and experts. */ if (!opt->bypass_limits) { - if (opt->maxsoc <= 0 || opt->maxsoc > 4) { - opt->maxsoc = 4; + if (opt->maxsoc <= 0 || opt->maxsoc > 8) { + opt->maxsoc = 8; if (opt->log != NULL) { HTS_LOG(opt,LOG_WARNING); fprintf(opt->log,"* security warning: maximum number of simultaneous connections limited to %d to avoid server overload"LF, (int)opt->maxsoc); } } - if (opt->maxrate <= 0 || opt->maxrate > 100000) { - opt->maxrate = 100000; + if (opt->maxrate <= 0 || opt->maxrate > 250000) { + opt->maxrate = 250000; if (opt->log != NULL) { HTS_LOG(opt,LOG_WARNING); fprintf(opt->log,"* security warning: maximum bandwidth limited to %d to avoid server overload"LF, (int)opt->maxrate); } -- cgit v1.2.3