From 8ba0a0c1c09b09cd0df05a368918c606b3f89641 Mon Sep 17 00:00:00 2001 From: Augusto Bott Date: Thu, 3 May 2012 04:39:23 -0300 Subject: [PATCH] IPTraffic: fix backup/restore cstats data via web UI * allow bigger files to be uploaded/restored via web UI (up to 100k) * allow more time for cstats to prepare backup do be downloaded via web UI (up to 20 secs) --- release/src/router/httpd/bwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/src/router/httpd/bwm.c b/release/src/router/httpd/bwm.c index 20821642f1..fdb8652e46 100644 --- a/release/src/router/httpd/bwm.c +++ b/release/src/router/httpd/bwm.c @@ -59,7 +59,7 @@ void wo_iptbackup(char *url) t = 0; } killall("cstats", SIGHUP); - for (i = 10; i > 0; --i) { + for (i = 20; i > 0; --i) { // may take a long time for gzip to complete if ((stat(ifn, &st) == 0) && (st.st_mtime != t)) break; sleep(1); } @@ -140,7 +140,7 @@ void wi_iptrestore(char *url, int len, char *boundary) goto ERROR; } - if ((len < 64) || (len > 10240)) { + if ((len < 64) || (len > 102400)) { // up to 100k goto ERROR; } -- 2.11.4.GIT