bbx10node wrote:The problem can be recreated using the FSBrowser example.
Hi, bbx10node,
Edit : I first didn't see any improvement due to a mistake of mine.
Please note the numbers of the "original version" below and compare with next post
I started with the unchanged FSBrowser example and uploaded 3 pictures to the SPIFFS, named test100K.jpg, test500K.jpg and test1MB.jpg (with the corresponding approximate sizes).
I than ran a script that performs 10 times a download of each of those pictures using wget, and checks after each download that the file is binary identical to the original file (it always was).
Finally, I changed the source file according to your instructions (I guess you meant ESP8266WebServer.h not ESPWebServer.h) and performed the same tests in the same situation as the first one (same router and same positions of ESP and PC relative to it).
Results with standard "_currentClient.write(file, HTTP_DOWNLOAD_UNIT_SIZE);" :
2016-08-19 13:41:21 (25,3 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:41:47 (19,7 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:42:32 (23,0 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:42:34 (52,5 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:42:56 (22,7 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:43:40 (23,4 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:43:45 (25,2 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:44:08 (22,5 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:44:52 (23,4 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:44:56 (25,2 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:45:18 (22,9 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:46:03 (23,3 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:46:07 (25,3 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:46:24 (29,9 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:47:08 (23,5 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:47:12 (25,1 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:47:34 (22,9 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:48:19 (23,1 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:48:23 (25,1 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:48:45 (22,8 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:49:30 (23,3 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:49:34 (24,8 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:49:57 (22,6 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:50:44 (23,5 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:50:48 (25,2 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:51:10 (22,8 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:51:55 (23,2 KB/s) - `test1MB.jpg' saved [1046750/1046750]
2016-08-19 13:51:59 (25,2 KB/s) - `test100K.jpg' saved [98828/98828]
2016-08-19 13:52:21 (22,9 KB/s) - `test500K.jpg' saved [512705/512705]
2016-08-19 13:53:05 (23,5 KB/s) - `test1MB.jpg' saved [1046750/1046750]
<snip>
See next post for results with modified version