lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] HTTPD speed with dynamic headers


From: Peter Janco
Subject: [lwip-users] HTTPD speed with dynamic headers
Date: Tue, 2 Apr 2019 10:34:45 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]