Vicne wrote:Should I expect faster download of five 50KB files using ESPAsyncWebServer than a single 250KB file using ESP8266WebServer ?
I presume, Yes, but I didn't tried it myself ...
Explore... Chat... Share...
Moderator: igrr
Vicne wrote:Should I expect faster download of five 50KB files using ESPAsyncWebServer than a single 250KB file using ESP8266WebServer ?
$ wget http://192.168.1.189/bigfile.dat
--2016-08-17 09:27:45-- http://192.168.1.189/bigfile.dat
Connecting to 192.168.1.189:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1.0M) [text/plain]
Saving to: ‘bigfile.dat’
100%[======================================>] 1,048,576 18.0KB/s in 54s
2016-08-17 09:28:39 (19.0 KB/s) - ‘bigfile.dat’ saved [1048576/1048576]
$ wget http://192.168.1.189/bigfile.dat
--2016-08-17 09:33:02-- http://192.168.1.189/bigfile.dat
Connecting to 192.168.1.189:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1.0M) [text/plain]
Saving to: ‘bigfile.dat’
100%[======================================>] 1,048,576 532KB/s in 1.9s
2016-08-17 09:33:04 (532 KB/s) - ‘bigfile.dat’ saved [1048576/1048576]
template<typename T> size_t streamFile(T &file, const String& contentType){
setContentLength(file.size());
if (String(file.name()).endsWith(".gz") &&
contentType != "application/x-gzip" &&
contentType != "application/octet-stream"){
sendHeader("Content-Encoding", "gzip");
}
send(200, contentType, "");
//return _currentClient.write(file, HTTP_DOWNLOAD_UNIT_SIZE); // Original code 1*MSS
return _currentClient.write(file, 2*HTTP_DOWNLOAD_UNIT_SIZE); // 2*MSS
}
bbx10node wrote:Doubling the buffer size reduces the download time from 54 s to 1.9s.
bbx10node wrote:The problem can be recreated using the FSBrowser example.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]