lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #54814] httpd dynamic file read


From: Vua Hoa
Subject: [lwip-devel] [bug #54814] httpd dynamic file read
Date: Wed, 10 Oct 2018 10:06:07 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Follow-up Comment #2, bug #54814 (project lwip):

First, sorry for the wrong comments, it should be 'fs_read_custom' instead of
'fs_open_custom'.
I think the two options work as following: 
1. LWIP_HTTPD_CUSTOM_FILES = 1 -> user app should provide fs_open_custom to
feed file data buffer to the file->data pointer, and the httpd can use
file->data directly.
2. LWIP_HTTPD_DYNAMIC_FILE_READ = 1 -> the httpd should ALWAYS call
fs_read_custom to feed data before each sending, it should NOT use file->data.
User App can set file->data to a specific value (maybe used later in the
fs_read_custom), and httpd shall NOT use it.

The bug I see here is for the 2nd options (LWIP_HTTPD_DYNAMIC_FILE_READ = 1):
when file->data != NULL, httpd use this pointer to send out data, it does not
call fs_read_custom.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?54814>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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