summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/htscoremain.c4
-rw-r--r--src/htslib.c2
-rw-r--r--src/htsserver.c2
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},
/* */