lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9500] Avoid sending Content-Length header if data i


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #9500] Avoid sending Content-Length header if data is not ready yet
Date: Sat, 3 Feb 2018 16:03:45 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Update of patch #9500 (project lwip):

                  Status:                    None => Done                   
             Assigned to:                    None => goldsimon              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #6:

There wer more bugs than this one. Should be fixed now, see
'examples/httpd/fs_example' in contrib.

As a result, custom files need the FS_FILE_FLAGS_HEADER_PERSISTENT flag for
their http connection to be persistent. So if you don't know the file size on
open, set it to 0 and don't set the persistent flag.

What's unclear to me is: why do you know a file exists (you return OK from
fs_open_custom), but don't know its size? Maybe we would need some kind of
delayed open mechanism instead...

Anyway, it should work now with the current code.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9500>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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