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: Mon, 5 Feb 2018 14:17:04 -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

Follow-up Comment #8, patch #9500 (project lwip):

I have understood that by now.

> My suggestion is to postpone the calculation of Content Length 
> header when httpd really needs it, so when the header is really 
> sent, that could be at a later time.

Implementing this would need a greater rework already: the header is sent
directly, even if using delayed read. So currently, content length *is*
"calculated" when it is needed.

That's why I proposed to implement delayed open. You could then even delay
searching for a file name. And of course in your case, you could delay open
until the file size is known.

    _______________________________________________________

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]