Skip to content

Example: FSBrowser very very slow ; Response time very long > 60s #999

@kendo55

Description

@kendo55

it seems that "webserver.streamFile" dos not work well.

I use the original example "FSBrowser.ino" with LittleFS,
the response time for e.g. the response of the call "serverIP/edit" is very very long (> 60s).

The alternate test:


With a replacemet in function handleFileRead()

of

 if (server.streamFile(file, contentType) != file.size()) {

with

    String sHTML = file.readString();
    file.close();
    DBG_OUTPUT_PORT.printf("HTML String bytes to send: %u\n", sHTML.length() );
    server.send(200, contentType, sHTML);

the Response time is very well.

it is clear that this does not work for larger content.
Just to test with the /edit-page

Arduino IDE: 1.8.19
Arduino-Pico: 2.6.3
Board: Raspberry Pi Pico W

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions