HTTPD speed with dynamic headers

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

HTTPD speed with dynamic headers

Peter Janco
Hi,
I am using Lwip 2.03 and "httpd.c" web server without rtos and I have a
problem with very slow download speed. My idea is to download whole
memory block of my device.

I create fsdata record like this:

const struct fsdata_file file__flash_bin[] =
{{
     file__404_html,//next web page in list
     (const unsigned char *)"/flash.bin",//name of this web page
     (const unsigned char *)0x60000000,//pointer do data
     (64*1024*1024),//length of data
     1,//1=HTTP included at begin of data, 0=use dynamic HTTP header
}};

With this setting, my download speed about 2.5MB/s. My processor NXP
IMXRT1062 is powerful. I expect speed to be closer to 100Mbit
(12.5MB/s)... Why it is only 2.5MS/s?
With fsdata above, HTTP header is missing at the begin of HTTP answer.
It is working well even without the header. But if I want to add HTTP
header, I have to enable "LWIP_HTTPD_DYNAMIC_HEADERS".

If I change fsdata record to this:

const struct fsdata_file file__flash_bin[] =
{{
     file__404_html,//next web page in list
     (const unsigned char *)"/flash.bin",//name of this web page
     (const unsigned char *)0x60000000,//pointer do data
     (64*1024*1024),//length of data
     0,//1=HTTP included at begin of data, 0=use dynamic HTTP header
}};

Then download speed in only 65KB/s.
What download speed have others Lwip web servers?
What is a options to speed up download from my Lwip web server?

Regards,
Peter



_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users