diff options
author | Xavier Roche <roche@httrack.com> | 2023-01-14 17:12:45 +0100 |
---|---|---|
committer | Xavier Roche <roche@httrack.com> | 2023-01-14 17:21:58 +0100 |
commit | 80b8e33d65c5b9207b9ec506b731fc3e26ccea4b (patch) | |
tree | 570abad2dfcc62d14d8bf890425a580ffa5fd072 | |
parent | fa0e5f72e079cf5b3dc0331c12499e04875d7726 (diff) |
Push default bandwidth to 100kiB/s, max to 10MiB/s
-rw-r--r-- | src/htscoremain.c | 4 | ||||
-rw-r--r-- | src/htslib.c | 2 | ||||
-rw-r--r-- | src/htsserver.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c index 14cdba3..91cb423 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -3164,8 +3164,8 @@ static int hts_main_internal(int argc, char **argv, httrackp * opt) { "* security warning: maximum number of simultaneous connections limited to %d to avoid server overload", (int) opt->maxsoc); } - if (opt->maxrate <= 0 || opt->maxrate > 250000) { - opt->maxrate = 250000; + if (opt->maxrate <= 0 || opt->maxrate > 10000000) { + opt->maxrate = 10000000; hts_log_print(opt, LOG_WARNING, "* security warning: maximum bandwidth limited to %d to avoid server overload", (int) opt->maxrate); diff --git a/src/htslib.c b/src/htslib.c index d19b3af..c426098 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -5507,7 +5507,7 @@ HTSEXT_API httrackp *hts_create_opt(void) { opt->maxcache = 1048576 * 32; // a peu près 32Mo en cache max -- OPTION NON PARAMETRABLE POUR L'INSTANT -- //opt->maxcache_anticipate=256; // maximum de liens à anticiper opt->maxtime = -1; // temps max en secondes - opt->maxrate = 25000; // taux maxi + opt->maxrate = 100000; // taux maxi opt->maxconn = 5.0; // nombre connexions/s opt->waittime = -1; // wait until.. hh*3600+mm*60+ss // diff --git a/src/htsserver.c b/src/htsserver.c index 604b892..4e3babc 100644 --- a/src/htsserver.c +++ b/src/htsserver.c @@ -347,7 +347,7 @@ int smallserver(T_SOC soc, char *url, char *method, char *data, char *path) { /* */ {"connexion", 4}, /* */ - {"maxrate", 25000}, + {"maxrate", 100000}, /* */ {"build", 1}, /* */ |