diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-11-01 19:20:13 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-11-01 19:20:13 +0000 |
commit | 73d5688d654ccb692f1136fac9180dc7d4cc177f (patch) | |
tree | 2c05bc473821dff6f5965f73ada20dcf87600289 /src | |
parent | 2848dd3b9e2fffc3be96853825437c389698bee1 (diff) |
Maximum number of connexions changed from 4 to 8
Maximum bandwidth usage changed from 100KB/s to 250KB/s
Diffstat (limited to 'src')
-rw-r--r-- | src/htscoremain.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |